1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fixing issue #22193 - authorize argument is not deprecated for 2.3 for ios and eos (#22326)

This commit is contained in:
Chris Alfonso 2017-03-07 05:03:44 -07:00 committed by Ricardo Carrillo Cruz
parent 792efbe3b6
commit 25827c85d2
2 changed files with 2 additions and 2 deletions

View file

@ -61,7 +61,7 @@ eos_argument_spec = {
def check_args(module, warnings): def check_args(module, warnings):
provider = module.params['provider'] or {} provider = module.params['provider'] or {}
for key in eos_argument_spec: 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 ' warnings.append('argument %s has been deprecated and will be '
'removed in a future version' % key) 'removed in a future version' % key)

View file

@ -46,7 +46,7 @@ ios_argument_spec = {
def check_args(module, warnings): def check_args(module, warnings):
provider = module.params['provider'] or {} provider = module.params['provider'] or {}
for key in ios_argument_spec: 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 ' warnings.append('argument %s has been deprecated and will be '
'removed in a future version' % key) 'removed in a future version' % key)