Skip to content

Commit

Permalink
fix: only wait for changeset if the result is not empty
Browse files Browse the repository at this point in the history
Signed-off-by: Gergely Brautigam <[email protected]>
  • Loading branch information
Skarlso committed Oct 4, 2023
1 parent a337a7e commit 3ecf95b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/utils/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3ecf95b

Please sign in to comment.