mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-08 00:37:27 +00:00
Merge pull request #4326 from fluxcd/backport-4296-to-release/v2.1.x
[release/v2.1.x] fix: only wait for changeset if the result is not empty
This commit is contained in:
commit
cef3eef641
1 changed files with 4 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue