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
4b28a51f
Commit
4b28a51f
authored
Jun 16, 2015
by
James Cammarata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't fail outright when a play has an empty hosts list
parent
605ddad3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
3 deletions
+1
-3
lib/ansible/executor/playbook_executor.py
+0
-1
lib/ansible/plugins/strategies/linear.py
+1
-2
No files found.
lib/ansible/executor/playbook_executor.py
View file @
4b28a51f
...
@@ -120,7 +120,6 @@ class PlaybookExecutor:
...
@@ -120,7 +120,6 @@ class PlaybookExecutor:
if
len
(
batch
)
==
0
:
if
len
(
batch
)
==
0
:
self
.
_tqm
.
send_callback
(
'v2_playbook_on_play_start'
,
new_play
)
self
.
_tqm
.
send_callback
(
'v2_playbook_on_play_start'
,
new_play
)
self
.
_tqm
.
send_callback
(
'v2_playbook_on_no_hosts_matched'
)
self
.
_tqm
.
send_callback
(
'v2_playbook_on_no_hosts_matched'
)
result
=
1
break
break
# restrict the inventory to the hosts in the serialized batch
# restrict the inventory to the hosts in the serialized batch
self
.
_inventory
.
restrict_to_hosts
(
batch
)
self
.
_inventory
.
restrict_to_hosts
(
batch
)
...
...
lib/ansible/plugins/strategies/linear.py
View file @
4b28a51f
...
@@ -122,9 +122,8 @@ class StrategyModule(StrategyBase):
...
@@ -122,9 +122,8 @@ class StrategyModule(StrategyBase):
moving on to the next task
moving on to the next task
'''
'''
result
=
True
# iteratate over each task, while there is one left to run
# iteratate over each task, while there is one left to run
result
=
True
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
:
...
...
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