1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

always return rc

This commit is contained in:
Brian Coca 2016-03-30 07:15:04 -07:00
parent 65c42605fe
commit 3f6166d2bf

View file

@ -620,7 +620,7 @@ class ActionBase(with_metaclass(ABCMeta, object)):
if not cmd:
# this can happen with powershell modules when there is no analog to a Windows command (like chmod)
display.debug("_low_level_execute_command(): no command, exiting")
return dict(stdout='', stderr='')
return dict(stdout='', stderr='', rc=254)
allow_same_user = C.BECOME_ALLOW_SAME_USER
same_user = self._play_context.become_user == self._play_context.remote_user