mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
As part of a precursor to other refactoring, make returns less list-like throughout runner.
This commit is contained in:
@@ -128,6 +128,8 @@ class CliRunnerCallbacks(DefaultRunnerCallbacks):
|
||||
self._on_any(host,res)
|
||||
|
||||
def on_unreachable(self, host, res):
|
||||
if type(res) == dict:
|
||||
res = res.get('msg','')
|
||||
print "%s | FAILED => %s" % (host, res)
|
||||
if self.options.tree:
|
||||
utils.write_tree_file(self.options.tree, host, utils.bigjson(dict(failed=True, msg=res)))
|
||||
|
||||
Reference in New Issue
Block a user