mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00: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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user