summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Sprygada <psprygada@ansible.com>2016-01-27 10:51:23 -0500
committerPeter Sprygada <psprygada@ansible.com>2016-01-27 11:25:47 -0500
commitc59916c43da70946f66174547bee5c6e0109715f (patch)
treeab9207f9fb5ee3b2ebe6be01da30b1853d8f521d
parenta61e51efb75f5d113d226dbbb0dd42581a141f31 (diff)
downloadansible-c59916c43da70946f66174547bee5c6e0109715f.tar.gz
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
-rw-r--r--lib/ansible/module_utils/eos.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ansible/module_utils/eos.py b/lib/ansible/module_utils/eos.py
index a89869dced..c5446dc539 100644
--- a/lib/ansible/module_utils/eos.py
+++ b/lib/ansible/module_utils/eos.py
@@ -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):