[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:
Gaurav Singh 2020-07-15 19:17:08 -04:00
parent 8c300565c2
commit 744ea3a930

View File

@ -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
}