mirror of https://github.com/ansible/ansible.git
Explicitly accept become_success in awaiting_prompt state
If we request escalation with a password, we start in expecting_prompt state. If the escalation then succeeds without the password, i.e., the become_success response arrives, we must explicitly move into the next state (awaiting_escalation, which immediately goes into ready_to_send), so that we no longer try to apply the timeout. Otherwise, we would leak the success notification and eventually timeout. But if the module response did arrive before the timeout expired, the "process has already exited" test would do the right thing by accident (which is why it didn't fail more often). Fixes #13289pull/13451/head
parent
54843d88ee
commit
cac0eea291
Loading…
Reference in New Issue