mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-09 09:54:02 -07:00
Cleaning up some stuff related to the connection info/become/executable change
This commit is contained in:
parent
1c185b68be
commit
3d77723e3d
3 changed files with 10 additions and 12 deletions
|
@ -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] != '_']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue