mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
roll up of fixes from nxos integration tests (#21948)
* now fails nxos_nxapi if the transport=nxapi * fixes typos in nxos_nxapi integration tests cases
This commit is contained in:
committed by
John R Barker
parent
d26c57f938
commit
01ac1bc6e5
@@ -134,6 +134,11 @@ from ansible.module_utils.netcfg import NetworkConfig
|
||||
from ansible.module_utils.six import iteritems
|
||||
|
||||
def check_args(module, warnings):
|
||||
transport = module.params['transport']
|
||||
provider_transport = (module.params['provider'] or {}).get('transport')
|
||||
if 'nxapi' in (transport, provider_transport):
|
||||
module.fail_json(msg='transport=nxapi is not supporting when configuring nxapi')
|
||||
|
||||
nxos_check_args(module, warnings)
|
||||
|
||||
state = module.params['state']
|
||||
|
||||
Reference in New Issue
Block a user