1
0
Fork 0
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:
Peter Sprygada 2016-01-27 10:51:23 -05:00
parent a61e51efb7
commit c59916c43d

View file

@ -148,6 +148,7 @@ class NetworkModule(AnsibleModule):
provider = params.get('provider') or dict()
for key, value in provider.items():
if key in NET_COMMON_ARGS.keys():
if not params.get(key) and value is not None:
params[key] = value
return params