Cleaning up some stuff related to the connection info/become/executable change

This commit is contained in:
James Cammarata
2015-07-13 16:46:51 -04:00
parent 1c185b68be
commit 3d77723e3d
3 changed files with 10 additions and 12 deletions

View File

@@ -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] != '_']

View File

@@ -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)