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:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user