mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-23 19:01:26 -07:00
Upgrades to error handling, now general try/catch available.
This commit is contained in:
parent
2e1b59a9d2
commit
4ae98ed92d
5 changed files with 92 additions and 52 deletions
|
@ -136,7 +136,7 @@ def dark_hosts_msg(results):
|
|||
''' summarize the results of all uncontactable hosts '''
|
||||
buf = ''
|
||||
if len(results['dark'].keys()) > 0:
|
||||
buf += "\n*** Hosts which could not be contacted or did not respond: ***\n"
|
||||
buf += "\n*** Hosts with fatal errors: ***\n"
|
||||
for hostname in results['dark'].keys():
|
||||
buf += "%s: %s\n" % (hostname, results['dark'][hostname])
|
||||
buf += "\n"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue