Remove check_args for vyos modules (#30739)

*  With addition of provider sub option validation check_args()
   is no longer required.
This commit is contained in:
Ganesh Nalawade 2017-09-22 15:56:23 +05:30 committed by GitHub
parent 06aad40ccb
commit c86b945a7c
14 changed files with 13 additions and 37 deletions

View file

@ -62,16 +62,6 @@ def get_provider_argspec():
return vyos_provider_spec
def check_args(module, warnings):
for key in vyos_argument_spec:
if module._name == 'vyos_user':
if key not in ['password', 'provider'] and module.params[key]:
warnings.append('argument %s has been deprecated and will be removed in a future version' % key)
else:
if key != 'provider' and module.params[key]:
warnings.append('argument %s has been deprecated and will be removed in a future version' % key)
def get_config(module, target='commands'):
cmd = ' '.join(['show configuration', target])