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

(cherry picked from commit ff5253fa0e)
pull/66383/head
Ganesh Nalawade 5 years ago committed by Matt Clay
parent 21fad83716
commit 69070402f0

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

@ -451,7 +451,7 @@ class Connection(NetworkConnectionBase):
self.queue_message('vvvv', 'firing event: on_open_shell()') self.queue_message('vvvv', 'firing event: on_open_shell()')
self._terminal.on_open_shell() self._terminal.on_open_shell()
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…
Cancel
Save