summaryrefslogtreecommitdiff
path: root/test/integration/targets/fetch
diff options
context:
space:
mode:
authorDag Wieers <dag@wieers.com>2017-05-21 00:25:57 +0200
committerToshio Kuratomi <a.badger@gmail.com>2017-05-30 14:56:31 -0700
commit0e160d5c7eca9aa5275c3f47d05c287a9e81401c (patch)
tree5b12ad111a01cb18cba41d4593150662df5aef3a /test/integration/targets/fetch
parent1f7871584885a3a1652fd4f17cf7d5eb28e7d218 (diff)
downloadansible-0e160d5c7eca9aa5275c3f47d05c287a9e81401c.tar.gz
Ensure exit_json returns failed = False
This is required for modules that may return a non-zero `rc` value for a successful run, similar to #24865 for Windows fixing **win_chocolatey**. We also disable the dependency on `rc` value only, even if `failed` was set. Adapted unit and integration tests to the new scheme. Updated raw, shell, script, expect to take `rc` into account.
Diffstat (limited to 'test/integration/targets/fetch')
-rw-r--r--test/integration/targets/fetch/tasks/main.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/integration/targets/fetch/tasks/main.yml b/test/integration/targets/fetch/tasks/main.yml
index 7fb34b385e..03339dee81 100644
--- a/test/integration/targets/fetch/tasks/main.yml
+++ b/test/integration/targets/fetch/tasks/main.yml
@@ -95,7 +95,7 @@
- name: check fetch directory result
assert:
that:
- - "failed_fetch_dir['failed']"
+ - "failed_fetch_dir|failed"
- "fetch_dir.msg"
- name: create symlink to a file that we can fetch