From 3f6166d2bf151ee1c95a70d2487689404a418e4f Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Wed, 30 Mar 2016 07:15:04 -0700 Subject: [PATCH] always return rc --- lib/ansible/plugins/action/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/action/__init__.py b/lib/ansible/plugins/action/__init__.py index 9cfbfe505c2..26fe30abb57 100644 --- a/lib/ansible/plugins/action/__init__.py +++ b/lib/ansible/plugins/action/__init__.py @@ -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