Fix exos_facts httpapi (#61198)

This commit is contained in:
Ujwal Komarla 2019-08-28 10:24:45 -04:00 committed by Nathaniel Case
parent f4fa4e4e0e
commit add33ccbdc

View file

@ -212,7 +212,7 @@ def get_resource_connection(module):
capabilities = get_capabilities(module) capabilities = get_capabilities(module)
network_api = capabilities.get('network_api') network_api = capabilities.get('network_api')
if network_api in ('cliconf', 'nxapi', 'eapi'): if network_api in ('cliconf', 'nxapi', 'eapi', 'exosapi'):
module._connection = Connection(module._socket_path) module._connection = Connection(module._socket_path)
elif network_api == 'netconf': elif network_api == 'netconf':
module._connection = NetconfConnection(module._socket_path) module._connection = NetconfConnection(module._socket_path)