Skip to content

Commit

Permalink
fix: ignore gcloud operations list warnings (#1507)
Browse files Browse the repository at this point in the history
- Warnings printed to STDERR were being captured as in-progress
  operations, causing listOperations to error. This change fixes
  that issue by disabling human output for that command.
  • Loading branch information
karlkfi authored Dec 12, 2024
1 parent 75871a1 commit dda537e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions e2e/nomostest/clusters/gke.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ func listOperations(ctx context.Context, t testing.NTB, name string) ([]string,
"--project", *e2e.GCPProject,
"--filter", fmt.Sprintf("status = RUNNING AND targetLink ~ ^.*/%s$", name),
"--format", "value(name)",
"--no-user-output-enabled", // mute warnings
}
if *e2e.GCPZone != "" {
args = append(args, "--zone", *e2e.GCPZone)
Expand Down

0 comments on commit dda537e

Please sign in to comment.