From 25827c85d26516f7c33686d5f2923e98b311db53 Mon Sep 17 00:00:00 2001 From: Chris Alfonso Date: Tue, 7 Mar 2017 05:03:44 -0700 Subject: [PATCH] Fixing issue #22193 - authorize argument is not deprecated for 2.3 for ios and eos (#22326) --- lib/ansible/module_utils/eos.py | 2 +- lib/ansible/module_utils/ios.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/module_utils/eos.py b/lib/ansible/module_utils/eos.py index 7bf37deca3..69beea96a7 100644 --- a/lib/ansible/module_utils/eos.py +++ b/lib/ansible/module_utils/eos.py @@ -61,7 +61,7 @@ eos_argument_spec = { def check_args(module, warnings): provider = module.params['provider'] or {} for key in eos_argument_spec: - if key not in ['provider', 'transport'] and module.params[key]: + if key not in ['provider', 'transport', 'authorize'] and module.params[key]: warnings.append('argument %s has been deprecated and will be ' 'removed in a future version' % key) diff --git a/lib/ansible/module_utils/ios.py b/lib/ansible/module_utils/ios.py index 4cd511a5c7..d5f53e32ba 100644 --- a/lib/ansible/module_utils/ios.py +++ b/lib/ansible/module_utils/ios.py @@ -46,7 +46,7 @@ ios_argument_spec = { def check_args(module, warnings): provider = module.params['provider'] or {} for key in ios_argument_spec: - if key != 'provider' and module.params[key]: + if key not in ['provider', 'authorize'] and module.params[key]: warnings.append('argument %s has been deprecated and will be ' 'removed in a future version' % key)