parent
261013354f
commit
3d3ebbf98e
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ class Connection(ConnectionBase):
|
||||||
raise AnsibleError('privilege output closed while waiting for password prompt:\n' + become_output)
|
raise AnsibleError('privilege output closed while waiting for password prompt:\n' + become_output)
|
||||||
become_output += chunk
|
become_output += chunk
|
||||||
if not self.check_become_success(become_output):
|
if not self.check_become_success(become_output):
|
||||||
p.stdin.write(self._play_context.become_pass + '\n')
|
p.stdin.write(to_bytes(self._play_context.become_pass, errors='surrogate_or_strict') + b'\n')
|
||||||
fcntl.fcntl(p.stdout, fcntl.F_SETFL, fcntl.fcntl(p.stdout, fcntl.F_GETFL) & ~os.O_NONBLOCK)
|
fcntl.fcntl(p.stdout, fcntl.F_SETFL, fcntl.fcntl(p.stdout, fcntl.F_GETFL) & ~os.O_NONBLOCK)
|
||||||
fcntl.fcntl(p.stderr, fcntl.F_SETFL, fcntl.fcntl(p.stderr, fcntl.F_GETFL) & ~os.O_NONBLOCK)
|
fcntl.fcntl(p.stderr, fcntl.F_SETFL, fcntl.fcntl(p.stderr, fcntl.F_GETFL) & ~os.O_NONBLOCK)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue