Fix network_cli become check to be compatible with collections (#65829)
* The become method name check is not required in network_cli as the become command is specific to platform and is implemented in the platform specific terminal plugins
This commit is contained in:
parent
98f19c970f
commit
ff5253fa0e
2 changed files with 3 additions and 1 deletions
2
changelogs/fragments/network_cli_enable_fix.yml
Normal file
2
changelogs/fragments/network_cli_enable_fix.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
bugfixes:
|
||||||
|
- Fix for network_cli become method to be compatible with collections
|
|
@ -460,7 +460,7 @@ class Connection(NetworkConnectionBase):
|
||||||
|
|
||||||
self.receive(prompts=terminal_initial_prompt, answer=terminal_initial_answer, newline=newline, check_all=check_all)
|
self.receive(prompts=terminal_initial_prompt, answer=terminal_initial_answer, newline=newline, check_all=check_all)
|
||||||
|
|
||||||
if self._play_context.become and self._play_context.become_method == 'enable':
|
if self._play_context.become:
|
||||||
self.queue_message('vvvv', 'firing event: on_become')
|
self.queue_message('vvvv', 'firing event: on_become')
|
||||||
auth_pass = self._play_context.become_pass
|
auth_pass = self._play_context.become_pass
|
||||||
self._terminal.on_become(passwd=auth_pass)
|
self._terminal.on_become(passwd=auth_pass)
|
||||||
|
|
Loading…
Reference in a new issue