Commit 67eb9f30 by Dan Rue

Do not mark "skipped" when changed is false

When using the "creates" option with the script module, set changed
to False if the file already exists. This behavior is consistent with
other modules which use "creates", such as command and shell.
parent 787388ac
......@@ -66,7 +66,7 @@ class ActionModule(object):
conn=conn,
comm_ok=True,
result=dict(
skipped=True,
changed=False,
msg=("skipped, since %s exists" % creates)
)
)
......@@ -83,7 +83,7 @@ class ActionModule(object):
conn=conn,
comm_ok=True,
result=dict(
skipped=True,
changed=False,
msg=("skipped, since %s does not exist" % removes)
)
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment