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. #903

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

AAYUSH2091
Copy link
Contributor

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.

@AAYUSH2091 AAYUSH2091 changed the title Correcting purge logic Fix nxos_user purge deleting non-locally configured users. Oct 21, 2024
@Ruchip16
Copy link
Contributor

Ruchip16 commented Oct 23, 2024

@AAYUSH2091 can you please add unit tests to validate the changes?

@Ruchip16 Ruchip16 marked this pull request as ready for review November 5, 2024 09:23
@Ruchip16 Ruchip16 requested a review from NilashishC November 5, 2024 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
3 participants