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
pull/65842/head
Ganesh Nalawade 6 years ago committed by Paul Belanger
parent 98f19c970f
commit ff5253fa0e

@ -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)
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')
auth_pass = self._play_context.become_pass
self._terminal.on_become(passwd=auth_pass)

Loading…
Cancel
Save