mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 11:50:42 -03:30
Include some more systemd information in the data structure
This commit is contained in:
parent
dd44c0a0f2
commit
5f66fbb7c4
@ -100,7 +100,9 @@ class SystemctlScanService(BaseService):
|
||||
line_data = line.split()
|
||||
if len(line_data) != 2:
|
||||
continue
|
||||
services[line_data[0]] = {"name": line_data[0], "state": "running" if line_data[1] == "enabled" else "stopped"}
|
||||
services[line_data[0]] = {"name": line_data[0],
|
||||
"state": "running" if line_data[1] == "enabled" else "stopped",
|
||||
"source": "systemd"}
|
||||
return services
|
||||
|
||||
def main():
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user