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
1cb4e0be
Commit
1cb4e0be
authored
Sep 12, 2015
by
James Cammarata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug in implicit block squashing where block is not reassigned
Fixes #12333
parent
7deb8bbd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
lib/ansible/playbook/helpers.py
+3
-1
No files found.
lib/ansible/playbook/helpers.py
View file @
1cb4e0be
...
@@ -50,10 +50,12 @@ def load_list_of_blocks(ds, play, parent_block=None, role=None, task_include=Non
...
@@ -50,10 +50,12 @@ def load_list_of_blocks(ds, play, parent_block=None, role=None, task_include=Non
variable_manager
=
variable_manager
,
variable_manager
=
variable_manager
,
loader
=
loader
loader
=
loader
)
)
# Implicit blocks are created by bare tasks listed in a play withou
# Implicit blocks are created by bare tasks listed in a play withou
t
# an explicit block statement. If we have two implicit blocks in a row,
# an explicit block statement. If we have two implicit blocks in a row,
# squash them down to a single block to save processing time later.
# squash them down to a single block to save processing time later.
if
b
.
_implicit
and
len
(
block_list
)
>
0
and
block_list
[
-
1
]
.
_implicit
:
if
b
.
_implicit
and
len
(
block_list
)
>
0
and
block_list
[
-
1
]
.
_implicit
:
for
t
in
b
.
block
:
t
.
_block
=
block_list
[
-
1
]
block_list
[
-
1
]
.
block
.
extend
(
b
.
block
)
block_list
[
-
1
]
.
block
.
extend
(
b
.
block
)
else
:
else
:
block_list
.
append
(
b
)
block_list
.
append
(
b
)
...
...
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