Skip to content

Commit

Permalink
Merge pull request #4326 from fluxcd/backport-4296-to-release/v2.1.x
Browse files Browse the repository at this point in the history
[release/v2.1.x] fix: only wait for changeset if the result is not empty
  • Loading branch information
hiddeco authored Oct 12, 2023
2 parents b3e432c + 5e412ee commit cef3eef
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 cef3eef

Please sign in to comment.