I sorted it out by changing the type of data passed to requests:
payload = {"system_id": machine_id}
maas.post(
url,
data=payload,
verify=False,
).raise_for_status()
Note the data
instead of the json
payload.
I sorted it out by changing the type of data passed to requests:
payload = {"system_id": machine_id}
maas.post(
url,
data=payload,
verify=False,
).raise_for_status()
Note the data
instead of the json
payload.