From 5f66fbb7c49965e4509340ac6324d5cb2c5cfe00 Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Mon, 23 Mar 2015 12:08:42 -0400 Subject: [PATCH] Include some more systemd information in the data structure --- awx/plugins/library/scan_services.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/awx/plugins/library/scan_services.py b/awx/plugins/library/scan_services.py index aced5f1ed3..4789cbea2a 100644 --- a/awx/plugins/library/scan_services.py +++ b/awx/plugins/library/scan_services.py @@ -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():