Validate config - fix for issue#1629

This commit is contained in:
Curtis Castrapel 2018-08-28 09:15:28 -07:00
parent cfbb3a205b
commit d82a615e17
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ def validate_conf(app, required_vars):
:param required_vars: list :param required_vars: list
""" """
for var in required_vars: for var in required_vars:
if not app.config.get(var): if var not in app.config:
raise InvalidConfiguration("Required variable '{var}' is not set in Lemur's conf.".format(var=var)) raise InvalidConfiguration("Required variable '{var}' is not set in Lemur's conf.".format(var=var))