Skip to content

Commit

Permalink
Merge 5ecfcbc into 9eb9fb6
Browse files Browse the repository at this point in the history
  • Loading branch information
b4ldr committed Feb 19, 2020
2 parents 9eb9fb6 + 5ecfcbc commit b1e3d2c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pypuppetdb/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,13 @@ def __init__(self, api, node, hash_, start, end, received, version,
self.transaction = transaction
self.environment = environment
self.status = 'noop' if noop and noop_pending else status
if self.status == 'unchanged':
for _log in logs:
if 'error' in _log['tags']:
self.status = 'error'
break
elif 'warning' in _log['tags']:
self.status = 'warning'
self.metrics = metrics
self.logs = logs
self.code_id = code_id
Expand Down

0 comments on commit b1e3d2c

Please sign in to comment.