Add get_capabilities in nxapi module_utils (#42688)

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
Trishna Guha
2018-07-13 11:11:35 +05:30
committed by GitHub
parent dc32842573
commit d5e9653c96
2 changed files with 28 additions and 2 deletions

View File

@@ -393,7 +393,7 @@ def main():
try:
info = get_capabilities(module)
api = info.get('network_api', 'nxapi')
api = info.get('network_api')
device_info = info.get('device_info', {})
os_platform = device_info.get('network_os_platform', '')
except ConnectionError: