mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Add get_capabilities in nxapi module_utils (#42688)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user