From 07c1a9bb2200c1ee7d76819c0f9add5a90458e2f Mon Sep 17 00:00:00 2001 From: pavel Date: Wed, 11 Feb 2026 17:51:27 +0200 Subject: [PATCH] 1751 --- files/nats_registration_listener.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/nats_registration_listener.py b/files/nats_registration_listener.py index a190beb..5170373 100644 --- a/files/nats_registration_listener.py +++ b/files/nats_registration_listener.py @@ -484,7 +484,7 @@ async def main(): "Accept": "application/json", "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( f"{base}/api/dcim/devices/{dev_id}/", patch_body, @@ -544,7 +544,7 @@ async def main(): "Accept": "application/json", "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( f"{base}/api/dcim/devices/{dev_id}/", patch_body,