From 9d5817af41ec96aba33dcfa3fffe399a5cee5a1a Mon Sep 17 00:00:00 2001 From: Nate Reeves Date: Tue, 24 Sep 2024 13:00:10 +0000 Subject: [PATCH] Update message when no existing record exists. --- netbox_lifecycle/management/commands/sync_cisco_hw_eox_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox_lifecycle/management/commands/sync_cisco_hw_eox_data.py b/netbox_lifecycle/management/commands/sync_cisco_hw_eox_data.py index 6ca8206..f61eded 100644 --- a/netbox_lifecycle/management/commands/sync_cisco_hw_eox_data.py +++ b/netbox_lifecycle/management/commands/sync_cisco_hw_eox_data.py @@ -77,7 +77,7 @@ def update_lifecycle_data(self, pid, hardware_type, eox_data): # If not, create a new one for this Device Type except hardware.HardwareLifecycle.DoesNotExist: hw_lifecycle = hardware.HardwareLifecycle(assigned_object_id=hw_obj.id, assigned_object_type_id=content_type.id) - self.stdout.write(self.style.NOTICE(f"{pid} - has an existing NetBox hardware lifecycle record")) + self.stdout.write(self.style.NOTICE(f"{pid} - has no existing NetBox hardware lifecycle record")) # Only save if something has changed value_changed = False