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
6cf99cf6
Commit
6cf99cf6
authored
Sep 11, 2015
by
James Cammarata
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #12328 from amenonsen/noneguard
Test state.tasks_child_state before dereferencing
parents
df89f036
049a48f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lib/ansible/executor/play_iterator.py
+3
-3
No files found.
lib/ansible/executor/play_iterator.py
View file @
6cf99cf6
...
...
@@ -237,7 +237,7 @@ class PlayIterator:
if
task
is
None
:
# check to see if the child state was failed, if so we need to
# fail here too so we don't continue iterating tasks
if
state
.
tasks_child_state
.
fail_state
!=
self
.
FAILED_NONE
:
if
state
.
tasks_child_state
and
state
.
tasks_child_state
.
fail_state
!=
self
.
FAILED_NONE
:
state
.
fail_state
|=
self
.
FAILED_TASKS
state
.
tasks_child_state
=
None
state
.
cur_regular_task
+=
1
...
...
@@ -263,7 +263,7 @@ class PlayIterator:
if
task
is
None
:
# check to see if the child state was failed, if so we need to
# fail here too so we don't continue iterating rescue
if
state
.
tasks_child_state
.
fail_state
!=
self
.
FAILED_NONE
:
if
state
.
tasks_child_state
and
state
.
tasks_child_state
.
fail_state
!=
self
.
FAILED_NONE
:
state
.
fail_state
|=
self
.
FAILED_RESCUE
state
.
rescue_child_state
=
None
state
.
cur_rescue_task
+=
1
...
...
@@ -293,7 +293,7 @@ class PlayIterator:
if
task
is
None
:
# check to see if the child state was failed, if so we need to
# fail here too so we don't continue iterating always
if
state
.
tasks_child_state
.
fail_state
!=
self
.
FAILED_NONE
:
if
state
.
tasks_child_state
and
state
.
tasks_child_state
.
fail_state
!=
self
.
FAILED_NONE
:
state
.
fail_state
|=
self
.
FAILED_ALWAYS
state
.
always_child_state
=
None
state
.
cur_always_task
+=
1
...
...
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