Procházet zdrojové kódy

update eg set nil map error fix (#2960)

Mohammed Nafees před 3 roky
rodič
revize
cb64845aa9
1 změnil soubory, kde provedl 5 přidání a 1 odebrání
  1. 5 1
      cli/cmd/deploy.go

+ 5 - 1
cli/cmd/deploy.go

@@ -637,7 +637,11 @@ func updateSetEnvGroup(_ *types.GetAuthenticatedUserResponse, client *api.Client
 
 
 	newEnvGroup := &types.CreateEnvGroupRequest{
 	newEnvGroup := &types.CreateEnvGroupRequest{
 		Name:      envGroupResp.Name,
 		Name:      envGroupResp.Name,
-		Variables: envGroupResp.Variables,
+		Variables: make(map[string]string),
+	}
+
+	for k, v := range envGroupResp.Variables {
+		newEnvGroup.Variables[k] = v
 	}
 	}
 
 
 	// first check for multiple variables being set using the -e or -s flags
 	// first check for multiple variables being set using the -e or -s flags