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:
Peter Sprygada 2017-02-18 11:20:26 -05:00 committed by GitHub
commit 920f9f4815
3 changed files with 19 additions and 15 deletions

View file

@ -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()