Skip to content

Commit

Permalink
fix option to override st_dev_mask
Browse files Browse the repository at this point in the history
  • Loading branch information
elesiuta committed Sep 21, 2023
1 parent 23e7f82 commit 34f9f1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion picosnitch.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ def read_snitch() -> dict:
if key in snitch_record:
data[key] = snitch_record[key]
assert all(type(data[key]) == type(template[key]) for key in template), "Invalid json files"
assert all(key == "Set RLIMIT_NOFILE" or type(data["Config"][key]) == type(template["Config"][key]) for key in template["Config"]), "Invalid config"
assert all(key in ["Set RLIMIT_NOFILE", "Set st_dev mask"] or type(data["Config"][key]) == type(template["Config"][key]) for key in template["Config"]), "Invalid config"
if write_config:
write_snitch(data, write_config=True)
return data
Expand Down

0 comments on commit 34f9f1f

Please sign in to comment.