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:
Matt Martz 2019-02-11 13:44:54 -06:00 committed by GitHub
parent d033884465
commit c55317a2bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 12 deletions

View file

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