We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c448bd commit 13edc10Copy full SHA for 13edc10
1 file changed
packages/helpermodules/mosquitto_dynsec/mosquitto_dynsec.py
@@ -125,7 +125,7 @@ def check_roles_at_start():
125
flag_path = Path(Path(__file__).resolve().parents[3]/"ramdisk"/"init_user_management")
126
if flag_path.is_file():
127
with open(flag_path, "r") as file:
128
- flag = bool(file.read())
+ flag = file.readline() == "1"
129
if flag:
130
for cp in SubData.cp_data.values():
131
add_acl_role("chargepoint-<id>-access", cp.chargepoint.num)
0 commit comments