Coerce (some) bools to strings
This commit is contained in:
parent
54c20a8c65
commit
339dea2581
@ -75,6 +75,8 @@ def main(args):
|
|||||||
# patch config
|
# patch config
|
||||||
cnt = 0
|
cnt = 0
|
||||||
for k, v in p.items():
|
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})
|
result = requests.patch(f"{REST_PATH}/{pargs.list}/config", auth=rest_auth, json={k: v})
|
||||||
if result.ok:
|
if result.ok:
|
||||||
cnt += 1
|
cnt += 1
|
||||||
|
Loading…
Reference in New Issue
Block a user