mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Cleaning up some stuff related to the connection info/become/executable change
This commit is contained in:
@@ -325,7 +325,6 @@ class ConnectionInformation:
|
||||
prompt = None
|
||||
success_key = None
|
||||
|
||||
print("in make_become_cmd, executable is: %s" % executable)
|
||||
if executable is None:
|
||||
executable = C.DEFAULT_EXECUTABLE
|
||||
|
||||
@@ -381,7 +380,7 @@ class ConnectionInformation:
|
||||
self.success_key = success_key
|
||||
return ('%s -c ' % executable) + pipes.quote(becomecmd)
|
||||
|
||||
return ('%s -c ' % executable) + pipes.quote(cmd)
|
||||
return cmd
|
||||
|
||||
def _get_fields(self):
|
||||
return [i for i in self.__dict__.keys() if i[:1] != '_']
|
||||
|
||||
@@ -429,7 +429,6 @@ class ActionBase:
|
||||
debug("no command, exiting _low_level_execute_command()")
|
||||
return dict(stdout='', stderr='')
|
||||
|
||||
print("in _low_level_execute_command, executable is: %s" % executable)
|
||||
if sudoable:
|
||||
cmd = self._connection_info.make_become_cmd(cmd, executable=executable)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user