diff --git a/pkg/oc/cli/cmd/rollout/cancel.go b/pkg/oc/cli/cmd/rollout/cancel.go index d9c61c549cd8..a5fcba5470b3 100644 --- a/pkg/oc/cli/cmd/rollout/cancel.go +++ b/pkg/oc/cli/cmd/rollout/cancel.go @@ -136,7 +136,14 @@ func (o CancelOptions) Run() error { return runtime.Encode(o.Encoder, rc) }) - if len(patches) == 0 { + allPatchesEmpty := true + for _, patch := range patches { + if len(patch.Patch) > 0 { + allPatchesEmpty = false + break + } + } + if allPatchesEmpty { kcmdutil.PrintSuccess(o.Mapper, false, o.Out, info.Mapping.Resource, info.Name, false, "already cancelled") return false } diff --git a/test/extended/util/test.go b/test/extended/util/test.go index 19530eb96171..6001989f4fb8 100644 --- a/test/extended/util/test.go +++ b/test/extended/util/test.go @@ -263,8 +263,6 @@ var ( // consistent 500 errors "should expose prometheus metrics for a route", "should expose the profiling endpoints", - // super flaky - "should only deploy the last deployment", `\[Skipped\]`, `\[Slow\]`,