From bcaac1e3c1e1951ac37ce65b68b5920a6bca6911 Mon Sep 17 00:00:00 2001 From: Michal Arbet Date: Wed, 11 Dec 2019 17:38:47 +0100 Subject: [PATCH] Fix parsing config file for freezer job Config parsers do not guess datatypes of values in configuration files, always storing them internally as strings. This means that we need to convert booleans, as they are parsed as Strings from config file. This patch is fixing typo from my previous commit where None is needed to remove from second if clause as it is already in first if clause and option_value should be False. Change-Id: Id60e75b5f999b70626addaf47b4abd1ad15555d6 --- freezer/utils/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freezer/utils/config.py b/freezer/utils/config.py index e93dc4bf..06dcd4cd 100644 --- a/freezer/utils/config.py +++ b/freezer/utils/config.py @@ -55,7 +55,7 @@ class Config(object): option_value = config.get(section, option) if option_value in ('False', 'false', 'None'): option_value = False - if option_value in ('True', 'true', 'None'): + elif option_value in ('True', 'true'): option_value = True dict[option] = option_value if section.startswith("storage:"):