mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 04:11:25 -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
|
@ -434,10 +434,10 @@ class Connection(ConnectionBase):
|
|||
# need to check every line because we might get lectured
|
||||
# and we might get the middle of a line in a chunk
|
||||
for l in become_output.splitlines(True):
|
||||
if self.check_become_success(l):
|
||||
if self.become.check_success(l):
|
||||
become_sucess = True
|
||||
break
|
||||
elif self.check_password_prompt(l):
|
||||
elif self.become.check_password_prompt(l):
|
||||
passprompt = True
|
||||
break
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue