From b8507b676b2c6723fef64db24f42bc257cd4c24a Mon Sep 17 00:00:00 2001 From: Ken Celenza Date: Mon, 17 Apr 2017 15:06:24 -0400 Subject: [PATCH] Remove Warning for provider (#23652) --- lib/ansible/module_utils/junos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/module_utils/junos.py b/lib/ansible/module_utils/junos.py index 436f8793ed..bea6e65a49 100644 --- a/lib/ansible/module_utils/junos.py +++ b/lib/ansible/module_utils/junos.py @@ -44,7 +44,7 @@ junos_argument_spec = { def check_args(module, warnings): provider = module.params['provider'] or {} for key in junos_argument_spec: - if key in ('provider',) and module.params[key]: + if key not in ('provider',) and module.params[key]: warnings.append('argument %s has been deprecated and will be ' 'removed in a future version' % key)