mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Rearranging some become stuff in relation to action/connection plugins
Moving the make_sudo_cmd() calls back up to the action level so that connection plugins don't have to know about it at all, and moving some of the become data (prompt and success_key) into the ConnectionInformation object so they don't need to be passed around needlessly.
This commit is contained in:
@@ -223,7 +223,7 @@ class Connection(ConnectionBase):
|
||||
|
||||
try:
|
||||
chan.exec_command(cmd)
|
||||
if self.prompt:
|
||||
if self._connection_info.prompt:
|
||||
while True:
|
||||
debug('Waiting for Privilege Escalation input')
|
||||
if self.check_become_success(become_output) or self.check_password_prompt(become_output):
|
||||
|
||||
Reference in New Issue
Block a user