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
b21875d5
Commit
b21875d5
authored
Jul 21, 2014
by
James Cammarata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure 'item' variable is set when using first_available_file
Fixes #8220
parent
2cc602be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
lib/ansible/playbook/task.py
+4
-0
No files found.
lib/ansible/playbook/task.py
View file @
b21875d5
...
...
@@ -257,6 +257,10 @@ class Task(object):
# make first_available_file accessable to Runner code
if
self
.
first_available_file
:
self
.
module_vars
[
'first_available_file'
]
=
self
.
first_available_file
# make sure that the 'item' variable is set when using
# first_available_file (issue #8220)
if
'item'
not
in
self
.
module_vars
:
self
.
module_vars
[
'item'
]
=
''
if
self
.
items_lookup_plugin
is
not
None
:
self
.
module_vars
[
'items_lookup_plugin'
]
=
self
.
items_lookup_plugin
...
...
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