Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…into beta
  • Loading branch information
yash-dk committed Jun 11, 2021
2 parents 81f9a94 + c3cfb50 commit 74af424
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tortoolkit/core/varholdern.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,12 @@ def get_var(self, variable):
elif variable in INTS:
val = int(envval) if envval is not None else val
elif variable in BOOLS:
if envval:
if envval is not None:
if not isinstance(val, bool):
if "true" in envval.lower():
val = True
else:
val = False
else:
val = None
else:
val = envval if envval is not None else val

Expand Down

0 comments on commit 74af424

Please sign in to comment.