|
|
|
@ -67,9 +67,15 @@ ARGS_DEFAULT_VALUE = {
|
|
|
|
|
def check_args(module, warnings):
|
|
|
|
|
provider = module.params['provider'] or {}
|
|
|
|
|
for key in eos_argument_spec:
|
|
|
|
|
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)
|
|
|
|
|
if module._name == 'eos_user':
|
|
|
|
|
if (key not in ['username', 'password', 'provider', 'transport', 'authorize'] and
|
|
|
|
|
module.params[key]):
|
|
|
|
|
warnings.append('argument %s has been deprecated and will be '
|
|
|
|
|
'removed in a future version' % key)
|
|
|
|
|
else:
|
|
|
|
|
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)
|
|
|
|
|
|
|
|
|
|
# set argument's default value if not provided in input
|
|
|
|
|
# This is done to avoid unwanted argument deprecation warning
|
|
|
|
|