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
fe5a7bca
Commit
fe5a7bca
authored
Oct 10, 2014
by
James Cammarata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing bad variable naming choices
parent
2eda9a3a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
test/integration/roles/test_conditionals/tasks/main.yml
+3
-3
test/integration/roles/test_conditionals/vars/main.yml
+2
-2
No files found.
test/integration/roles/test_conditionals/tasks/main.yml
View file @
fe5a7bca
...
@@ -269,8 +269,8 @@
...
@@ -269,8 +269,8 @@
-
name
:
test a with_items loop using a variable with a missing attribute
-
name
:
test a with_items loop using a variable with a missing attribute
debug
:
var=item
debug
:
var=item
with_items
:
foo
.results
with_items
:
cond_bad_attribute
.results
when
:
foo is defined and 'results' in foo
when
:
cond_bad_attribute is defined and 'results' in cond_bad_attribute
register
:
result
register
:
result
-
name
:
assert the task was skipped
-
name
:
assert the task was skipped
...
@@ -281,7 +281,7 @@
...
@@ -281,7 +281,7 @@
-
name
:
test a with_items loop skipping a single item
-
name
:
test a with_items loop skipping a single item
debug
:
var=item
debug
:
var=item
with_items
:
items.results
with_items
:
cond_list_of_
items.results
when
:
item != 'b'
when
:
item != 'b'
register
:
result
register
:
result
...
...
test/integration/roles/test_conditionals/vars/main.yml
View file @
fe5a7bca
...
@@ -2,10 +2,10 @@
...
@@ -2,10 +2,10 @@
# foo is a dictionary that will be used to check that
# foo is a dictionary that will be used to check that
# a conditional passes a with_items loop on a variable
# a conditional passes a with_items loop on a variable
# with a missing attribute (ie. foo.results)
# with a missing attribute (ie. foo.results)
foo
:
cond_bad_attribute
:
bar
:
a
bar
:
a
items
:
cond_list_of_
items
:
results
:
results
:
-
a
-
a
-
b
-
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