2eda9a3a47
Fixes a case where the variable 'foo' may exist, but the with_items loop was used on something like 'foo.results', where 'results' was not a valid attribute of 'foo'. Prior to this patch, conditionals were not evaluated until later, meaning there was no opportunity to allow a test to skip the task or item based on it being undefined.
13 lines
210 B
YAML
13 lines
210 B
YAML
---
|
|
# foo is a dictionary that will be used to check that
|
|
# a conditional passes a with_items loop on a variable
|
|
# with a missing attribute (ie. foo.results)
|
|
foo:
|
|
bar: a
|
|
|
|
items:
|
|
results:
|
|
- a
|
|
- b
|
|
- c
|
|
|