mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00: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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user