1
0
mirror of synced 2026-02-06 19:05:55 +00:00

fix: only wait for changeset if the result is not empty

Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
This commit is contained in:
Gergely Brautigam
2023-10-04 13:57:50 +02:00
parent be03ca3b5d
commit a51ede681f

View File

@@ -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 {