Commit a6aedbcc by Brian Coca

now correctly picks up old become password host vars

parent d74cf467
...@@ -165,8 +165,10 @@ class ConnectionInformation: ...@@ -165,8 +165,10 @@ class ConnectionInformation:
# backwards compat # backwards compat
self.sudo_exe = None self.sudo_exe = None
self.sudo_flags = None self.sudo_flags = None
self.sudo_pass = None
self.su_exe = None self.su_exe = None
self.su_flags = None self.su_flags = None
self.su_pass = None
# general flags (should we move out?) # general flags (should we move out?)
self.verbosity = 0 self.verbosity = 0
...@@ -295,6 +297,13 @@ class ConnectionInformation: ...@@ -295,6 +297,13 @@ class ConnectionInformation:
if variable_name in variables: if variable_name in variables:
setattr(new_info, attr, variables[variable_name]) setattr(new_info, attr, variables[variable_name])
# become legacy updates
if not new_info.become_pass:
if new_info.become_method == 'sudo' and new_info.sudo_pass:
setattr(new_info, 'become_pass', new_info.sudo_pass)
elif new_info.become_method == 'su' and new_info.su_pass:
setattr(new_info, 'become_pass', new_info.su_pass)
return new_info return new_info
def make_become_cmd(self, cmd, executable=C.DEFAULT_EXECUTABLE): def make_become_cmd(self, cmd, executable=C.DEFAULT_EXECUTABLE):
......
Subproject commit abdd96ed1e966a290cdcdb4cb9f8d2a7c03ae59e Subproject commit ff69ce7912e2cee53e6737e377853a49c0482b1c
Subproject commit 195ef57bfb254e719aa7ea3a6ad30729e3036b87 Subproject commit 4e48ef9ecace3a6eb92e3e4d2ef1a3ea2b7e33ab
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment