Skip to content

Commit 13edc10

Browse files
committed
fix init_user_management file check
1 parent 9c448bd commit 13edc10

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/helpermodules/mosquitto_dynsec/mosquitto_dynsec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def check_roles_at_start():
125125
flag_path = Path(Path(__file__).resolve().parents[3]/"ramdisk"/"init_user_management")
126126
if flag_path.is_file():
127127
with open(flag_path, "r") as file:
128-
flag = bool(file.read())
128+
flag = file.readline() == "1"
129129
if flag:
130130
for cp in SubData.cp_data.values():
131131
add_acl_role("chargepoint-<id>-access", cp.chargepoint.num)

0 commit comments

Comments
 (0)