Skip to content

Commit 033a429

Browse files
authored
Fix gcts deploy field anonymize (#5129)
* adding anonymisation for object field * Further fixes to gcts deploy step * syntax changes
1 parent c991c5b commit 033a429

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/gctsDeploy.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func gctsDeployRepository(config *gctsDeployOptions, telemetryData *telemetry.Cu
8181
repoMetadataInitState, getRepositoryErr := getRepository(config, httpClient)
8282
currentBranch := repoMetadataInitState.Result.Branch
8383
// If Repository does not exist in the system then Create and Clone Repository
84-
if getRepositoryErr != nil {
84+
if getRepositoryErr != nil || repoMetadataInitState.Result.Rid == "" {
8585
// If scope is set for a new repository then creation/cloning of the repository cannot be done
8686
if config.Scope != "" {
8787
log.Entry().Error("Error during deploy : deploy scope cannot be provided while deploying a new repo")
@@ -824,7 +824,7 @@ type getRepositoryResponseBody struct {
824824
Value string `json:"value"`
825825
Category string `json:"category"`
826826
} `json:"config"`
827-
Objects int64 `json:"objects"`
827+
Objects any `json:"objects"`
828828
CurrentCommit string `json:"currentCommit"`
829829
Connection string `json:"connection"`
830830
} `json:"result"`

0 commit comments

Comments
 (0)