Skip to content

Commit

Permalink
dont normalize vmss
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-Redeploy committed Dec 29, 2023
1 parent 9521a0f commit b5d8407
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,9 @@ func machineSetHasMachineDeploymentOwnerRef(machineSet *unstructured.Unstructure
// normalizedProviderString splits s on '/' returning everything after
// the last '/'.
func normalizedProviderString(s string) normalizedProviderID {
if strings.HasPrefix(s, "azure://") && strings.Contains(s, "virtualMachineScaleSets") {
return normalizedProviderID(s)
}
split := strings.Split(s, "/")
return normalizedProviderID(split[len(split)-1])
}
Expand Down

0 comments on commit b5d8407

Please sign in to comment.