mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
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:
@@ -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])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user