Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix double prompt issue in network_cli (ansible#35439)
Fixes ansible#33993 In current implementation while trying to fetch the current cli prompt terminal plugin executes `\r` on remote host. This causes if command execution results in a prompt for example executing `enable` command results in `Password:` prompt there by executing `\r` on password prompt which is not intended. To fix it while fetching current prompt from terminal plugin use `get_prompt()` api in network_cli that returns the latest matched prompt instead of unnecessary executing `\r` on remote host.
- Loading branch information