1751
This commit is contained in:
@@ -484,7 +484,7 @@ async def main():
|
|||||||
"Accept": "application/json",
|
"Accept": "application/json",
|
||||||
"Authorization": f"Token {NB_TOKEN}",
|
"Authorization": f"Token {NB_TOKEN}",
|
||||||
}
|
}
|
||||||
patch_body = {"custom_fields": {"action_last": action_next_str, "action_next_timestamp": now_epoch}}
|
patch_body = {"custom_fields": {"action_last": action_next_str, "action_next_timestamp": str(now_epoch)}}
|
||||||
_, pcode = http_patch_json(
|
_, pcode = http_patch_json(
|
||||||
f"{base}/api/dcim/devices/{dev_id}/",
|
f"{base}/api/dcim/devices/{dev_id}/",
|
||||||
patch_body,
|
patch_body,
|
||||||
@@ -544,7 +544,7 @@ async def main():
|
|||||||
"Accept": "application/json",
|
"Accept": "application/json",
|
||||||
"Authorization": f"Token {NB_TOKEN}",
|
"Authorization": f"Token {NB_TOKEN}",
|
||||||
}
|
}
|
||||||
patch_body = {"custom_fields": {"action_last": action_next_str, "action_next_timestamp": now_epoch}}
|
patch_body = {"custom_fields": {"action_last": action_next_str, "action_next_timestamp": str(now_epoch)}}
|
||||||
_, pcode = http_patch_json(
|
_, pcode = http_patch_json(
|
||||||
f"{base}/api/dcim/devices/{dev_id}/",
|
f"{base}/api/dcim/devices/{dev_id}/",
|
||||||
patch_body,
|
patch_body,
|
||||||
|
|||||||
Reference in New Issue
Block a user