Skip to content

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