소스 검색

update eg set nil map error fix (#2960)

Mohammed Nafees 3 년 전
부모
커밋
cb64845aa9
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  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{
 		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