fix: handle empty string as false in EvaluateBase class
This commit is contained in:
1 parent
56e3f6e9e0
commit
dbccd2adf6
1 file changed
+1
@@ -71,6 +71,7 @@ class EvaluateBase(object):
|
|||||||
if value == 'false': return False
|
if value == 'false': return False
|
||||||
if value == False: return False
|
if value == False: return False
|
||||||
if value == None: return False
|
if value == None: return False
|
||||||
|
if value == '': return False
|
||||||
# this should be handle explicitely by the condition
|
# this should be handle explicitely by the condition
|
||||||
# edit: this is actually usefull if don't want disable to be evaluated as true
|
# edit: this is actually usefull if don't want disable to be evaluated as true
|
||||||
if value == 'unavailable': return False
|
if value == 'unavailable': return False
|
||||||
|
|||||||
Reference in new issue
Block a user