From c59916c43da70946f66174547bee5c6e0109715f Mon Sep 17 00:00:00 2001 From: Peter Sprygada Date: Wed, 27 Jan 2016 10:51:23 -0500 Subject: [PATCH] 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 --- lib/ansible/module_utils/eos.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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):