Skip to content

Commit

Permalink
Merge pull request ansible#5 from gamuniz/master
Browse files Browse the repository at this point in the history
fix to handle nonexistent system_id
  • Loading branch information
ryanpetrello authored Aug 3, 2018
2 parents 30b15b2 + 8afcb60 commit c5b4693
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion library/scan_insights.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit c5b4693

Please sign in to comment.