Add no changes to flow

[ZITADOPER-4]
This commit is contained in:
Haim Kortovich
2024-06-18 14:23:27 -05:00
parent aa5a411251
commit 51bff475e9

View File

@@ -19,6 +19,7 @@ package controller
import (
"context"
"fmt"
"strings"
"time"
zitadelv1alpha1 "bitbucket.org/topmanage-software-engineering/zitadel-k8s-operator/src/api/v1alpha1"
@@ -140,7 +141,9 @@ func (wr *wrappedFlowReconciler) reconcileFlow(ctx context.Context, ztdClient *m
ActionIds: actionIds,
})
if err != nil {
return fmt.Errorf("Error triggering action flow: %v", err)
if !strings.Contains(err.Error(), "No Changes") {
return fmt.Errorf("Error triggering action flow: %v", err)
}
}
return nil
}