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
ed603f70
Commit
ed603f70
authored
Aug 03, 2015
by
James Cammarata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix free strategy only running first play in a multi-play playbook
Fixes #11839
parent
c2435fab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
lib/ansible/plugins/strategies/free.py
+2
-3
No files found.
lib/ansible/plugins/strategies/free.py
View file @
ed603f70
...
@@ -53,7 +53,7 @@ class StrategyModule(StrategyBase):
...
@@ -53,7 +53,7 @@ class StrategyModule(StrategyBase):
work_to_do
=
True
work_to_do
=
True
while
work_to_do
and
not
self
.
_tqm
.
_terminated
:
while
work_to_do
and
not
self
.
_tqm
.
_terminated
:
hosts_left
=
self
.
get_hosts_remaining
(
iterator
.
_play
)
hosts_left
=
self
.
_inventory
.
get_hosts
(
iterator
.
_play
.
hosts
)
if
len
(
hosts_left
)
==
0
:
if
len
(
hosts_left
)
==
0
:
self
.
_tqm
.
send_callback
(
'v2_playbook_on_no_hosts_remaining'
)
self
.
_tqm
.
send_callback
(
'v2_playbook_on_no_hosts_remaining'
)
result
=
False
result
=
False
...
@@ -149,10 +149,9 @@ class StrategyModule(StrategyBase):
...
@@ -149,10 +149,9 @@ class StrategyModule(StrategyBase):
except
Exception
as
e
:
except
Exception
as
e
:
# FIXME: ctrl+c can cause some failures here, so catch them
# FIXME: ctrl+c can cause some failures here, so catch them
# with the appropriate error type
# with the appropriate error type
print
(
"wtf:
%
s"
%
e
)
pass
pass
# run the base class run() method, which executes the cleanup function
# run the base class run() method, which executes the cleanup function
# and runs any outstanding handlers which have been triggered
# and runs any outstanding handlers which have been triggered
super
(
StrategyModule
,
self
)
.
run
(
iterator
,
play_contex
t
)
return
super
(
StrategyModule
,
self
)
.
run
(
iterator
,
play_context
,
resul
t
)
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