From b8308f41a095290f93b53d2935739168d181be87 Mon Sep 17 00:00:00 2001 From: He Weiwei Date: Fri, 22 Nov 2019 03:31:09 +0000 Subject: [PATCH] fix(prepaire,clair): disable clair updaters when its interval is 0 Closes #9961 Signed-off-by: He Weiwei --- make/photon/prepare/utils/configs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/make/photon/prepare/utils/configs.py b/make/photon/prepare/utils/configs.py index 3e74167cb..9d2e91413 100644 --- a/make/photon/prepare/utils/configs.py +++ b/make/photon/prepare/utils/configs.py @@ -223,7 +223,8 @@ def parse_yaml_config(config_file_path, with_notary, with_clair, with_chartmuseu # Clair configs, optional clair_configs = configs.get("clair") or {} config_dict['clair_db'] = 'postgres' - config_dict['clair_updaters_interval'] = clair_configs.get("updaters_interval") or 12 + updaters_interval = clair_configs.get("updaters_interval", None) + config_dict['clair_updaters_interval'] = 12 if updaters_interval is None else updaters_interval # Chart configs chart_configs = configs.get("chart") or {}