mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 12:21:26 -07:00
Update connection plugins to use correct, non-deprecated, methods (#52038)
* Update connection plugins to use correct, non-deprecated, methods * Update tests to reflect calling become plugins
This commit is contained in:
parent
d033884465
commit
c55317a2bd
4 changed files with 12 additions and 12 deletions
|
@ -707,18 +707,18 @@ class Connection(ConnectionBase):
|
|||
suppress_output = False
|
||||
|
||||
# display.debug("Examining line (source=%s, state=%s): '%s'" % (source, state, display_line))
|
||||
if self.become.expect_prompt() and self.check_password_prompt(b_line):
|
||||
if self.become.expect_prompt() and self.become.check_password_prompt(b_line):
|
||||
display.debug("become_prompt: (source=%s, state=%s): '%s'" % (source, state, display_line))
|
||||
self._flags['become_prompt'] = True
|
||||
suppress_output = True
|
||||
elif self.become.success and self.check_become_success(b_line):
|
||||
elif self.become.success and self.become.check_success(b_line):
|
||||
display.debug("become_success: (source=%s, state=%s): '%s'" % (source, state, display_line))
|
||||
self._flags['become_success'] = True
|
||||
suppress_output = True
|
||||
elif sudoable and self.check_incorrect_password(b_line):
|
||||
elif sudoable and self.become.check_incorrect_password(b_line):
|
||||
display.debug("become_error: (source=%s, state=%s): '%s'" % (source, state, display_line))
|
||||
self._flags['become_error'] = True
|
||||
elif sudoable and self.check_missing_password(b_line):
|
||||
elif sudoable and self.become.check_missing_password(b_line):
|
||||
display.debug("become_nopasswd_error: (source=%s, state=%s): '%s'" % (source, state, display_line))
|
||||
self._flags['become_nopasswd_error'] = True
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue