Call get_capabilities to initiate device connection (#62103)

This commit is contained in:
Mike Wiebe 2019-09-11 10:08:54 -04:00 committed by Trishna Guha
parent b7ab8f9411
commit b03091213d

View file

@ -451,6 +451,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.