Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix nxos_user purge deleting non-locally configured users #901

Closed

Conversation

AAYUSH2091
Copy link

@AAYUSH2091 AAYUSH2091 commented Oct 16, 2024

SUMMARY

Fixes an issue in the nxos_user module where the purge option deleting the non-locally configured users displayed by the "show user-account" command, breaking idempotency. Now, only locally configured users are purged.

Fixes #871

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

nxos_user

ADDITIONAL INFORMATION

When the purge option was used, users authenticated via TACACS+ or users defined for SNMP were being deleted despite not being locally configured. This fix ensures only local users are purged.

@NilashishC
Copy link
Collaborator

@AAYUSH2091 The changelog job is failing. You need to add a bugfix changelog entry describing the fix, such as this: https://github.com/ansible-collections/cisco.nxos/pull/859/files#diff-de685577801508b9b0e9cf96b84f1a3259919457b10c3004fef89fe1e6b77fc5R2.

@Ruchip16
Copy link
Contributor

closing this as #903 PR is open.

@Ruchip16 Ruchip16 closed this Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cisco.nxos.nxos_user - Purge deletes users which does not exist, breaks idempotency
4 participants