Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
171c9567
Commit
171c9567
authored
Jul 19, 2015
by
Brian Coca
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed gathering expression as it was triggering when gather_facts was no
parent
f66ba927
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
lib/ansible/executor/play_iterator.py
+5
-4
No files found.
lib/ansible/executor/play_iterator.py
View file @
171c9567
...
...
@@ -139,10 +139,11 @@ class PlayIterator:
# NOT explicitly set gather_facts to False.
gathering
=
C
.
DEFAULT_GATHERING
if
((
gathering
==
'smart'
and
not
host
.
_gathered_facts
)
or
(
gathering
==
'explicit'
and
boolean
(
self
.
_play
.
gather_facts
))
or
(
gathering
==
'implicit'
and
(
self
.
_play
.
gather_facts
is
None
or
boolean
(
self
.
_play
.
gather_facts
)))):
implied
=
self
.
_play
.
gather_facts
is
None
or
boolean
(
self
.
_play
.
gather_facts
)
if
(
gathering
==
'implicit'
and
implied
)
or
\
(
gathering
==
'explicit'
and
boolean
(
self
.
_play
.
gather_facts
))
or
\
(
gathering
==
'smart'
and
implied
and
not
host
.
_gathered_facts
):
if
not
peek
:
# mark the host as having gathered facts
host
.
set_gathered_facts
(
True
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment