1
0
mirror of https://github.com/ansible/awx-facts-playbooks.git synced 2026-02-05 15:45:03 +01:00

fix to handle nonexistent system_id

This commit is contained in:
gamuniz
2018-08-03 15:36:16 -04:00
committed by GitHub
parent 0d3e89c47f
commit 8afcb60ead

View File

@@ -41,7 +41,9 @@ def get_system_id(filname):
pass
finally:
f.close()
return system_id.strip()
if system_id:
system_id = system_id.strip()
return system_id
def main():