mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
parent
4914164717
commit
9bcc3f298f
1 changed files with 2 additions and 3 deletions
|
@ -59,6 +59,7 @@ eos_argument_spec = {
|
|||
|
||||
# Add argument's default value here
|
||||
ARGS_DEFAULT_VALUE = {
|
||||
'transport': 'cli',
|
||||
'port': 443,
|
||||
'use_ssl': True,
|
||||
'validate_certs': True
|
||||
|
@ -94,9 +95,7 @@ def get_connection(module):
|
|||
global _DEVICE_CONNECTION
|
||||
if not _DEVICE_CONNECTION:
|
||||
load_params(module)
|
||||
transport = module.params['transport']
|
||||
provider_transport = (module.params['provider'] or {}).get('transport')
|
||||
if 'eapi' in (transport, provider_transport):
|
||||
if is_eapi(module):
|
||||
conn = Eapi(module)
|
||||
else:
|
||||
conn = Cli(module)
|
||||
|
|
Loading…
Reference in a new issue