made sure we need becoem before we format the command, added debug entry also
This commit is contained in:
parent
df768e0db4
commit
6fcfebd21d
1 changed files with 2 additions and 1 deletions
|
@ -454,7 +454,8 @@ class ActionBase:
|
||||||
self._display.debug("no command, exiting _low_level_execute_command()")
|
self._display.debug("no command, exiting _low_level_execute_command()")
|
||||||
return dict(stdout='', stderr='')
|
return dict(stdout='', stderr='')
|
||||||
|
|
||||||
if sudoable:
|
if sudoable and self._play_context.become:
|
||||||
|
self._display.debug("using become for this command")
|
||||||
cmd = self._play_context.make_become_cmd(cmd, executable=executable)
|
cmd = self._play_context.make_become_cmd(cmd, executable=executable)
|
||||||
|
|
||||||
self._display.debug("executing the command %s through the connection" % cmd)
|
self._display.debug("executing the command %s through the connection" % cmd)
|
||||||
|
|
Loading…
Reference in a new issue