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: wrong result of data rancher2_principal #1335

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wgjak47
Copy link

@wgjak47 wgjak47 commented Apr 4, 2024

Issue: #1330

Problem

When using the data source rancher2_principal to search for a principal, it may return wrong result when one principal name is the prefix of another principal, for example: k8s-admin, k8s-admin-test

Solution

In this code , check the return result is really match the request name.

Testing

As the issue describe.

Engineering Testing

Manual Testing

Now the data source rancher2_principal will always return k8s-admin when you set the name as k8s-admin, instead of return k8s-admin-test.

Automated Testing

QA Testing Considerations

Regressions Considerations

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.

1 participant