Commit 82343d77 authored by Spiros Koulouzis's avatar Spiros Koulouzis

if no host set to all

parent 7c904dfa
......@@ -138,7 +138,7 @@ def create_faied_playbooks(failed_tasks,passed_tasks,inventory,variable_manager,
hosts = ""
if isinstance(failed_task, ansible.parsing.yaml.objects.AnsibleUnicode) or isinstance(failed_task, unicode) or isinstance(failed_task,str):
task_name = str(failed_task)
host = str(failed_task)
host = str('all')
else:
task_name = str(failed_task._task.get_name())
host = str(failed_task._host.get_name())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment