Skip to content

Commit

Permalink
Update message when no existing record exists.
Browse files Browse the repository at this point in the history
  • Loading branch information
uck9 committed Sep 24, 2024
1 parent 3c92bc6 commit 9d5817a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9d5817a

Please sign in to comment.