Remove unused code in nxos_user (#65529)

There is no longer the need to warn on password, it is not supported any
more.

Update nxos_user tests not to purge current SSH user for nxos, otherwise
we loose access for testing.

Signed-off-by: Paul Belanger <pabelanger@redhat.com>
pull/65541/head
Paul Belanger 5 years ago committed by Nilashish Chakraborty
parent 7d2ae7e322
commit d39870a693

@ -337,15 +337,7 @@ def main():
mutually_exclusive=mutually_exclusive,
supports_check_mode=True)
warnings = list()
if module.params['password'] and not module.params['configured_password']:
warnings.append(
'The "password" argument is used to authenticate the current connection. ' +
'To set a user password use "configured_password" instead.'
)
result = {'changed': False}
result['warnings'] = warnings
want = map_params_to_obj(module)
have = map_config_to_obj(module)

@ -95,7 +95,7 @@
- name: tearDown
nxos_user: &tear
name: ansible
name: "{{ ansible_user }}"
purge: yes
provider: "{{ connection }}"
register: result

Loading…
Cancel
Save