Fix nxos_facts httpapi (#60055)

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
pull/58766/head
Trishna Guha 5 years ago committed by GitHub
parent 8a5bde798a
commit e46237d705
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

@ -25,9 +25,3 @@
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
- name: run test cases (connection=local)
include: "{{ test_case_to_run }} ansible_connection=local connection={{ nxapi }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run

Loading…
Cancel
Save