Skip to content

Commit

Permalink
Fix gcts deploy field anonymize (#5129)
Browse files Browse the repository at this point in the history
* adding anonymisation for object field

* Further fixes to gcts deploy step

* syntax changes
  • Loading branch information
sarat-krk authored Oct 8, 2024
1 parent c991c5b commit 033a429
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/gctsDeploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func gctsDeployRepository(config *gctsDeployOptions, telemetryData *telemetry.Cu
repoMetadataInitState, getRepositoryErr := getRepository(config, httpClient)
currentBranch := repoMetadataInitState.Result.Branch
// If Repository does not exist in the system then Create and Clone Repository
if getRepositoryErr != nil {
if getRepositoryErr != nil || repoMetadataInitState.Result.Rid == "" {
// If scope is set for a new repository then creation/cloning of the repository cannot be done
if config.Scope != "" {
log.Entry().Error("Error during deploy : deploy scope cannot be provided while deploying a new repo")
Expand Down Expand Up @@ -824,7 +824,7 @@ type getRepositoryResponseBody struct {
Value string `json:"value"`
Category string `json:"category"`
} `json:"config"`
Objects int64 `json:"objects"`
Objects any `json:"objects"`
CurrentCommit string `json:"currentCommit"`
Connection string `json:"connection"`
} `json:"result"`
Expand Down

0 comments on commit 033a429

Please sign in to comment.