You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by st...@apache.org on 2020/04/23 02:10:10 UTC
[openwhisk-package-alarms] branch master updated: Add `strict`
option while get trigger (#210)
This is an automated email from the ASF dual-hosted git repository.
style95 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwhisk-package-alarms.git
The following commit(s) were added to refs/heads/master by this push:
new e2e9c14 Add `strict` option while get trigger (#210)
e2e9c14 is described below
commit e2e9c142a94f04dd3b264a3a797e232fe866274a
Author: jiangpch <ji...@navercorp.com>
AuthorDate: Thu Apr 23 10:10:02 2020 +0800
Add `strict` option while get trigger (#210)
* Add `strict` option while get trigger
* Fix bug
Co-authored-by: jiang.pengcheng <ji...@navercorp.com>
---
action/alarmWebAction.js | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/action/alarmWebAction.js b/action/alarmWebAction.js
index b6145f9..c6a787c 100644
--- a/action/alarmWebAction.js
+++ b/action/alarmWebAction.js
@@ -191,6 +191,11 @@ function main(params) {
reason: doc.status.reason
}
};
+ var strict = true; // strict is default to true
+ if (doc.strict !== undefined) {
+ strict = doc.strict;
+ }
+ body.config.strict = strict;
if (doc.date) {
body.config.date = doc.date;
body.config.deleteAfterFire = doc.deleteAfterFire;