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

Remove deprecation for username/password eos_user, nxos_user and Doc update (#24880)

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
Trishna Guha 2017-05-22 20:02:36 +05:30 committed by GitHub
parent d96195131f
commit 9fb9c00092
3 changed files with 16 additions and 5 deletions

View file

@ -67,7 +67,13 @@ 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]:
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)

View file

@ -65,6 +65,10 @@ ARGS_DEFAULT_VALUE = {
def check_args(module, warnings):
provider = module.params['provider'] or {}
for key in nxos_argument_spec:
if module._name == 'nxos_user':
if key not in ['password', 'provider', 'transport'] and module.params[key]:
warnings.append('argument %s has been deprecated and will be in a future version' % key)
else:
if key not in ['provider', 'transport'] and module.params[key]:
warnings.append('argument %s has been deprecated and will be removed in a future version' % key)

View file

@ -46,6 +46,7 @@ options:
- The username to be configured on the remote Arista EOS
device. This argument accepts a stringv value and is mutually
exclusive with the C(users) argument.
Please note that this option is not same as C(provider username).
update_password:
description:
- Since passwords are encrypted in the device running config, this