mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
fixes issue with eos shared module argument precedence
The eos shared module should prefer to use explicit task arguments over arguments provided through the provider. This fixes a problem where that was not the case
This commit is contained in:
parent
a61e51efb7
commit
c59916c43d
1 changed files with 2 additions and 1 deletions
|
@ -148,7 +148,8 @@ class NetworkModule(AnsibleModule):
|
|||
provider = params.get('provider') or dict()
|
||||
for key, value in provider.items():
|
||||
if key in NET_COMMON_ARGS.keys():
|
||||
params[key] = value
|
||||
if not params.get(key) and value is not None:
|
||||
params[key] = value
|
||||
return params
|
||||
|
||||
def connect(self):
|
||||
|
|
Loading…
Reference in a new issue