From 7df027f826c7542b261a8522013f07d5c46fe7c6 Mon Sep 17 00:00:00 2001 From: Ryan Petrello Date: Fri, 3 Aug 2018 16:08:40 -0400 Subject: [PATCH] fix to handle nonexistent system_id --- awx/plugins/library/scan_insights.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/awx/plugins/library/scan_insights.py b/awx/plugins/library/scan_insights.py index 2e759a28cb..917b81bc86 100755 --- a/awx/plugins/library/scan_insights.py +++ b/awx/plugins/library/scan_insights.py @@ -41,6 +41,8 @@ def get_system_id(filname): pass finally: f.close() + if system_id: + system_id = system_id.strip() return system_id