summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToshio Kuratomi <a.badger@gmail.com>2015-02-17 23:03:10 -0800
committerToshio Kuratomi <a.badger@gmail.com>2015-02-17 23:03:10 -0800
commita6d0ab3e5316f7ee1acc0f5f25c9aaae420d140a (patch)
treeefd7c7558b27606792b7b9b0d9efc729b8d546ee
parentc486c3ac06188bc45e51cdedda9d48fa29b2ac9a (diff)
parentc2f731e5bdb18c285f9bb79044f3d6e521b64cbc (diff)
downloadansible-modules-core-a6d0ab3e5316f7ee1acc0f5f25c9aaae420d140a.tar.gz
Merge pull request #802 from danrue/unarchive_creates_behavior
Make behavior consistent when using 'creates' option with modules
-rw-r--r--network/basics/uri.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/network/basics/uri.py b/network/basics/uri.py
index aac724a8..9be0a06c 100644
--- a/network/basics/uri.py
+++ b/network/basics/uri.py
@@ -381,7 +381,7 @@ def main():
# of uri executions.
creates = os.path.expanduser(creates)
if os.path.exists(creates):
- module.exit_json(stdout="skipped, since %s exists" % creates, skipped=True, changed=False, stderr=False, rc=0)
+ module.exit_json(stdout="skipped, since %s exists" % creates, changed=False, stderr=False, rc=0)
if removes is not None:
# do not run the command if the line contains removes=filename
@@ -389,7 +389,7 @@ def main():
# of uri executions.
v = os.path.expanduser(removes)
if not os.path.exists(removes):
- module.exit_json(stdout="skipped, since %s does not exist" % removes, skipped=True, changed=False, stderr=False, rc=0)
+ module.exit_json(stdout="skipped, since %s does not exist" % removes, changed=False, stderr=False, rc=0)
# httplib2 only sends authentication after the server asks for it with a 401.