Commit 59e45e66 authored by Antoine Catton's avatar Antoine Catton Committed by Łukasz Nowak

Bugfix: use default value in optionIsTrue

This is an atomic commit this time.
parent 29bb8c24
......@@ -120,4 +120,6 @@ class GenericBaseRecipe(object):
return str(value).lower() in GenericBaseRecipe.TRUE_VALUES
def optionIsTrue(self, optionname, default=None):
if default is not None and optionname not in self.options:
return default
return self.isTrueValue(self.options[optionname])
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment