-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(notifications-catalog): Add nil check for on-deployed trigger (#1…
…5363) Signed-off-by: Fs02 <[email protected]> Co-authored-by: pasha-codefresh <[email protected]>
- Loading branch information
1 parent
ec2d3f6
commit 0de579d
Showing
2 changed files
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
- when: app.status.operationState.phase in ['Succeeded'] and app.status.health.status == 'Healthy' | ||
- when: app.status.operationState != nil and app.status.operationState.phase in ['Succeeded'] and app.status.health.status == 'Healthy' | ||
description: Application is synced and healthy. Triggered once per commit. | ||
send: [app-deployed] | ||
oncePer: app.status.operationState.syncResult.revision | ||
oncePer: app.status.operationState?.syncResult?.revision |