mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-03 07:41:30 -07:00
Nxos fixes (#40117)
* Alter nxos_nxapi tests to test the right thing * Defend #40027
This commit is contained in:
parent
caddf863df
commit
f04c876ecd
7 changed files with 43 additions and 8 deletions
|
@ -43,6 +43,9 @@ class ActionModule(_ActionModule):
|
|||
|
||||
socket_path = None
|
||||
|
||||
if self._task.args.get('provider', {}).get('transport') == 'nxapi' and self._task.action == 'nxos_nxapi':
|
||||
return {'failed': True, 'msg': "Transport type 'nxapi' is not valid for '%s' module." % (self._task.action)}
|
||||
|
||||
if self._play_context.connection == 'network_cli':
|
||||
provider = self._task.args.get('provider', {})
|
||||
if any(provider.values()):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue