diff options
author | Brian Coca <bcoca@users.noreply.github.com> | 2019-03-12 18:18:38 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-12 18:18:38 -0400 |
commit | b793f08a922ebc9ad1034e47b4d364d3914822d0 (patch) | |
tree | db200f52f9e38b4fabbe079be498c9b30dc148c9 /test/integration/targets/loops | |
parent | 7a387e216ea0989be31f2a201682fb4d26bd13bd (diff) | |
download | ansible-b793f08a922ebc9ad1034e47b4d364d3914822d0.tar.gz |
fixes for stripping (#52930)
function changed to do in place replacement, should be less expensive even with copy as it avoids 'sub copies', can compose with module_args_copy to create replacement for old behavior
attempt to fix #52910
* handle lists and subdicts correctly
* added missing exception case, which was not noticed since 'cleaning' was not working
* added comments to clarify exceptions
Diffstat (limited to 'test/integration/targets/loops')
-rw-r--r-- | test/integration/targets/loops/tasks/main.yml | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/test/integration/targets/loops/tasks/main.yml b/test/integration/targets/loops/tasks/main.yml index c0a4f14da0..db66687361 100644 --- a/test/integration/targets/loops/tasks/main.yml +++ b/test/integration/targets/loops/tasks/main.yml @@ -196,31 +196,6 @@ loop_control: index_var: my_idx -# -# loop_control/label -# https://github.com/ansible/ansible/pull/36430 -# - -- set_fact: - loopthis: - - name: foo - label: foo_label - - name: bar - label: bar_label - -- name: check that item label is updated each iteration - debug: - msg: "{{ looped_var.name }}" - with_items: "{{ loopthis }}" - loop_control: - loop_var: looped_var - label: "looped_var {{ looped_var.label }}" - register: output - -- assert: - that: - - "output.results[0]['_ansible_item_label'] == 'looped_var foo_label'" - - "output.results[1]['_ansible_item_label'] == 'looped_var bar_label'" # The following test cases are to ensure that we don't have a regression on # GitHub Issue https://github.com/ansible/ansible/issues/35481 |