Add support for unreachable hosts

This commit is contained in:
David Moreau-Simard
2016-05-10 18:13:58 -04:00
parent 3de0f0fdcc
commit 726d2f2d1a
7 changed files with 28 additions and 16 deletions

View File

@@ -49,6 +49,8 @@ def jinja_pick_status(row):
return 'SKIPPED'
if row.failed:
return 'FAILED'
if row.unreachable:
return 'UNREACHABLE'
return 'OK'
@@ -92,6 +94,7 @@ def status_to_query(status=None):
},
'failed': {'failed': 1},
'skipped': {'skipped': 1},
'unreachable': {'unreachable': 1}
}[status]
else:
return None