未验证 提交 b36aa583 编写于 作者: 熊磊 提交者: Gitee

Signed-off-by: xionglei <xionglei6@huawei.com>

上级 36106c34
......@@ -298,6 +298,9 @@ int ParseTriggerConfig(const cJSON *fileRoot, int (*checkJobValid)(const char *j
{
PARAM_CHECK(fileRoot != NULL, return -1, "Invalid file");
cJSON *triggers = cJSON_GetObjectItemCaseSensitive(fileRoot, TRIGGER_ARR_NAME_IN_JSON);
if (triggers == NULL) {
return 0;
}
PARAM_CHECK(cJSON_IsArray(triggers), return -1, "Trigger item must array");
int size = cJSON_GetArraySize(triggers);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册