This commit is contained in:
parent
d089ed821a
commit
874ff1094e
@ -167,8 +167,9 @@ class CallbackModule(CallbackBase):
|
|||||||
|
|
||||||
hosts = sorted(stats.processed.keys())
|
hosts = sorted(stats.processed.keys())
|
||||||
|
|
||||||
t = prettytable.PrettyTable(['Host', 'Ok', 'Changed', 'Unreachable',
|
t = prettytable.PrettyTable(['Host and state'] )
|
||||||
'Failures', 'Rescued', 'Ignored'])
|
#, 'Ok', 'Changed', 'Unreachable',
|
||||||
|
# 'Failures', 'Rescued', 'Ignored'])
|
||||||
|
|
||||||
failures = False
|
failures = False
|
||||||
unreachable = False
|
unreachable = False
|
||||||
@ -181,7 +182,8 @@ class CallbackModule(CallbackBase):
|
|||||||
if s['unreachable'] > 0:
|
if s['unreachable'] > 0:
|
||||||
unreachable = True
|
unreachable = True
|
||||||
|
|
||||||
t.add_row([h] + [s[k] for k in ['ok', 'changed', 'unreachable',
|
t.add_row([h] )
|
||||||
|
t.add_row( [s[k] for k in ['ok', 'changed', 'unreachable',
|
||||||
'failures', 'rescued', 'ignored']])
|
'failures', 'rescued', 'ignored']])
|
||||||
|
|
||||||
msg = []
|
msg = []
|
||||||
|
Loading…
Reference in New Issue
Block a user