1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

nxos_facts test lldp feature and fix nxapi check_rc (#44104)

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
Trishna Guha 2018-08-14 10:14:13 +05:30 committed by GitHub
parent f87b156423
commit 43ae240431
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View file

@ -341,7 +341,7 @@ class Nxapi:
if response['ins_api'].get('outputs'):
output = response['ins_api']['outputs']['output']
for item in to_list(output):
if check_status and item['code'] != '200':
if check_status is True and item['code'] != '200':
if return_error:
result.append(item)
else:

View file

@ -11,6 +11,12 @@
state: present
connection: network_cli
- name: Enable lldp
nxos_config:
lines:
- feature lldp
ignore_errors: yes
# Gather the list of interfaces on this device and make the list
# available for integration tests that need them.
#