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
fd2d7fe4
Commit
fd2d7fe4
authored
Mar 18, 2015
by
Brian Coca
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #10290 from bcoca/remove_bare_warning
removed bare variable detection as this confuses people
parents
2a967879
7044b5a8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
5 deletions
+0
-5
lib/ansible/playbook/task.py
+0
-5
No files found.
lib/ansible/playbook/task.py
View file @
fd2d7fe4
...
...
@@ -84,11 +84,6 @@ class Task(object):
elif
x
.
startswith
(
"with_"
):
if
isinstance
(
ds
[
x
],
basestring
):
param
=
ds
[
x
]
.
strip
()
# Only a variable, no logic
if
(
param
.
startswith
(
'{{'
)
and
param
.
find
(
'}}'
)
==
len
(
ds
[
x
])
-
2
and
param
.
find
(
'|'
)
==
-
1
):
utils
.
warning
(
"It is unnecessary to use '{{' in loops, leave variables in loop expressions bare."
)
plugin_name
=
x
.
replace
(
"with_"
,
""
)
if
plugin_name
in
utils
.
plugins
.
lookup_loader
:
...
...
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