mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 04:40:22 -07:00
fixes nxos nxapi implementation (#21615)
* correctly maps play_context to nxapi values * fixes bug in nxos_nxapi module detecting nxapi feature * updates nxos shared lib provider values * fixes missing ssh_keyfile in nxos shared lib
This commit is contained in:
parent
eb6956e1dd
commit
920f9f4815
3 changed files with 19 additions and 15 deletions
|
@ -209,7 +209,7 @@ def parse_sandbox(data):
|
|||
|
||||
def map_config_to_obj(module):
|
||||
out = run_commands(module, ['show nxapi'], check_rc=False)
|
||||
if not out[0]:
|
||||
if out[0] == '':
|
||||
return {'state': 'absent'}
|
||||
|
||||
out = str(out[0]).strip()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue