mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-14 04:09:11 -07:00
Fix logic error in script action plug related to use of shell.exists
This commit is contained in:
parent
e003ef93fc
commit
26a4761d0f
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ class ActionModule(ActionBase):
|
||||||
# do not run the command if the line contains removes=filename
|
# do not run the command if the line contains removes=filename
|
||||||
# and the filename does not exist. This allows idempotence
|
# and the filename does not exist. This allows idempotence
|
||||||
# of command executions.
|
# of command executions.
|
||||||
if self._remote_file_exists(removes):
|
if not self._remote_file_exists(removes):
|
||||||
return dict(skipped=True, msg=("skipped, since %s does not exist" % removes))
|
return dict(skipped=True, msg=("skipped, since %s does not exist" % removes))
|
||||||
|
|
||||||
# the script name is the first item in the raw params, so we split it
|
# the script name is the first item in the raw params, so we split it
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue