Coerce (some) bools to strings

This commit is contained in:
Cassowary Rusnov 2024-02-29 11:45:36 -08:00
parent 54c20a8c65
commit 339dea2581
1 changed files with 2 additions and 0 deletions

View File

@ -75,6 +75,8 @@ def main(args):
# patch config
cnt = 0
for k, v in p.items():
if (type(v) == bool):
v = str(v)
result = requests.patch(f"{REST_PATH}/{pargs.list}/config", auth=rest_auth, json={k: v})
if result.ok:
cnt += 1