diff --git a/lib/ansible/modules/network/nxos/nxos_user.py b/lib/ansible/modules/network/nxos/nxos_user.py index 5c2cc0abcb2..3fc4118d272 100644 --- a/lib/ansible/modules/network/nxos/nxos_user.py +++ b/lib/ansible/modules/network/nxos/nxos_user.py @@ -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) diff --git a/test/integration/targets/nxos_user/tests/common/sanity.yaml b/test/integration/targets/nxos_user/tests/common/sanity.yaml index 61ef5898eaf..07fee4d0004 100644 --- a/test/integration/targets/nxos_user/tests/common/sanity.yaml +++ b/test/integration/targets/nxos_user/tests/common/sanity.yaml @@ -95,7 +95,7 @@ - name: tearDown nxos_user: &tear - name: ansible + name: "{{ ansible_user }}" purge: yes provider: "{{ connection }}" register: result