mirror of
https://github.com/ansible/awx.git
synced 2026-04-06 18:49:21 -02:30
Include some more systemd information in the data structure
This commit is contained in:
@@ -100,7 +100,9 @@ class SystemctlScanService(BaseService):
|
|||||||
line_data = line.split()
|
line_data = line.split()
|
||||||
if len(line_data) != 2:
|
if len(line_data) != 2:
|
||||||
continue
|
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
|
return services
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|||||||
Reference in New Issue
Block a user