mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 13:45:06 +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:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user