Commit 171c9567 by Brian Coca

fixed gathering expression as it was triggering when gather_facts was no

parent f66ba927
...@@ -139,10 +139,11 @@ class PlayIterator: ...@@ -139,10 +139,11 @@ class PlayIterator:
# NOT explicitly set gather_facts to False. # NOT explicitly set gather_facts to False.
gathering = C.DEFAULT_GATHERING gathering = C.DEFAULT_GATHERING
if ((gathering == 'smart' and not host._gathered_facts) or implied = self._play.gather_facts is None or boolean(self._play.gather_facts)
(gathering == 'explicit' and boolean(self._play.gather_facts)) or
(gathering == 'implicit' and if (gathering == 'implicit' and implied) or \
(self._play.gather_facts is None or boolean(self._play.gather_facts)))): (gathering == 'explicit' and boolean(self._play.gather_facts)) or \
(gathering == 'smart' and implied and not host._gathered_facts):
if not peek: if not peek:
# mark the host as having gathered facts # mark the host as having gathered facts
host.set_gathered_facts(True) host.set_gathered_facts(True)
......
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