mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-24 05:40:23 -07:00
Add get_capabilities in nxapi module_utils (#42688)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
parent
dc32842573
commit
d5e9653c96
2 changed files with 28 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue