Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jaricftw committed Oct 21, 2023
1 parent 93acc33 commit ec213c9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions deploy-agent/deployd/common/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,10 @@ def get_info_from_facter(keys):
if output:
return json.loads(output)
else:
log.error("Got empty output from facter by keys {}".format(keys))
return None
except Exception as e:
log.error("Failed to get info from facter by keys {}: {}".format(keys, e))
except:
log.exception("Failed to get info from facter by keys {}".format(keys))
return None


Expand Down

0 comments on commit ec213c9

Please sign in to comment.