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:
Ganesh Nalawade 2019-12-15 03:20:51 +05:30 committed by Paul Belanger
parent 98f19c970f
commit ff5253fa0e
2 changed files with 3 additions and 1 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- Fix for network_cli become method to be compatible with collections

View file

@ -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)