Making sure config can't be switched to unknown if it's false
parent
9b8ed9ddf9
commit
310d8145d5
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue