Making sure config can't be switched to unknown if it's false

pull/82/head
haraksin 2020-05-14 16:26:51 -07:00
parent 9b8ed9ddf9
commit 310d8145d5
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ def env_config_helper(env_name):
def yaml_config_helper(config_name, CONFIG): def yaml_config_helper(config_name, CONFIG):
if config_name in CONFIG["misp"]: if config_name in CONFIG["misp"]:
if not CONFIG["misp"][config_name]: if not CONFIG["misp"][config_name] and CONFIG["misp"][config_name] != False:
CONFIG["misp"][config_name] = "UNKNOWN" CONFIG["misp"][config_name] = "UNKNOWN"
else: else:
CONFIG["misp"][config_name] = "UNKNOWN" CONFIG["misp"][config_name] = "UNKNOWN"