mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
[staging/azure] azure_utils: fix range iterator issue in convertMaptoMapPointer
Signed-off-by: Gaurav Singh <gaurav1086@gmail.com> Use local variable for the copy of iterator variable
This commit is contained in:
parent
8c300565c2
commit
744ea3a930
@ -110,7 +110,8 @@ func ConvertTagsToMap(tags string) (map[string]string, error) {
|
||||
func convertMaptoMapPointer(origin map[string]string) map[string]*string {
|
||||
newly := make(map[string]*string)
|
||||
for k, v := range origin {
|
||||
newly[k] = &v
|
||||
value := v
|
||||
newly[k] = &value
|
||||
}
|
||||
return newly
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user