Skip to content

Commit 6ef5320

Browse files
committed
for setting bools use string 0 and 1 instead of int because this is how its input. There is no need for
math so keep as string
1 parent 5117a9e commit 6ef5320

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

harbor_wave.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -693,9 +693,9 @@ def set_config(config_dir,loaded_config,item,value):
693693
except:
694694
exit_with_error(2,"set: invalid value for " + item + ". must by an interger")
695695
elif item in set_item_bool:
696-
if value.lower() == "true" or value.lower() == "t" or value == 1:
696+
if value.lower() == "true" or value.lower() == "t" or value == "1":
697697
value = True
698-
elif value.lower() == "false" or value.lower() == "f" or value == 0:
698+
elif value.lower() == "false" or value.lower() == "f" or value == "0":
699699
value = False
700700
else:
701701
exit_with_error(2,"set: invalid value for " + item + ". must be True/False")

0 commit comments

Comments
 (0)