Call get_capabilities to initiate device connection (#62103)

(cherry picked from commit b03091213d)
pull/62378/head
Mike Wiebe 5 years ago committed by Toshio Kuratomi
parent 5aa859d0d7
commit 424feef990

@ -0,0 +1,2 @@
bugfixes:
- nxos_file_copy call get_capabilities to initiate device connection (https://github.com/ansible/ansible/pull/62103).

@ -460,6 +460,10 @@ class ActionModule(ActionBase):
if socket_path is None:
socket_path = self._connection.socket_path
self.conn = Connection(socket_path)
# Call get_capabilities() to start the connection to the device.
self.conn.get_capabilities()
self.socket_timeout = self.conn.get_option('persistent_command_timeout')
# This action plugin support two modes of operation.

Loading…
Cancel
Save