Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Handle case sensitive id check #271

Merged
merged 1 commit into from
Jul 2, 2019
Merged

Conversation

aramase
Copy link
Member

@aramase aramase commented Jul 1, 2019

Reason for Change:

MIC fails when trying to compare same identity but with different cases for resource groups resourceGroups | resourcegroups in the resourceID format. This results in error when trying to assign the identity which already exists. This change will ensure we validate the identities case insensitively.

Issue Fixed:

#269

Notes for Reviewers:

@aramase aramase requested a review from kkmsft July 1, 2019 21:20
@@ -65,7 +66,7 @@ func filter(ls *[]string, filter string) {
}

for i, v := range *ls {
if v == filter {
if strings.EqualFold(v, filter) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One thing to note - before the identity was never removed if it was manually created and the resourceID format was different in azure identity. With this change it'll be deleted even if the case is different in resourceID.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants