mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-05 07:49:10 -07: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:
parent
06aad40ccb
commit
c86b945a7c
14 changed files with 13 additions and 37 deletions
|
@ -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])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue