From a51ede681f7f9e9d99249ff7cf0c021458f30d85 Mon Sep 17 00:00:00 2001 From: Gergely Brautigam <182850+Skarlso@users.noreply.github.com> Date: Wed, 4 Oct 2023 13:57:50 +0200 Subject: [PATCH] fix: only wait for changeset if the result is not empty Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com> --- internal/utils/apply.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/internal/utils/apply.go b/internal/utils/apply.go index c910fce390..52bf67b867 100644 --- a/internal/utils/apply.go +++ b/internal/utils/apply.go @@ -76,8 +76,10 @@ func Apply(ctx context.Context, rcg genericclioptions.RESTClientGetter, opts *ru changeSet.Append(cs.Entries) } - if err := waitForSet(rcg, opts, changeSet); err != nil { - return "", err + if len(changeSet.Entries) > 0 { + if err := waitForSet(rcg, opts, changeSet); err != nil { + return "", err + } } if len(stageTwo) > 0 {