Commit fa9ea32a by Toshio Kuratomi

Fix test of whether a result has a failed host

parent 1c49e3b8
......@@ -21,6 +21,7 @@ __metaclass__ = type
import os
from ansible.errors import AnsibleError
from ansible.template import Templar
class IncludedFile:
......@@ -46,7 +47,7 @@ class IncludedFile:
included_files = []
for res in results:
if res._host in tqm._failed_hosts:
if res._host.name in tqm._failed_hosts:
raise AnsibleError("host is failed, not including files")
if res._task.action == 'include':
......
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