Skip to content

Commit

Permalink
Set old and new version to "N/A" for new device
Browse files Browse the repository at this point in the history
  • Loading branch information
johannaengland committed Jan 20, 2023
1 parent 2f4b9ae commit c541744
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/nav/ipdevpoll/shadows/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,8 @@ def _post_events_version_changes(self, containers):
netbox=containers.get(None, Netbox).get_existing_model(),
alert_type=ALERT_TYPE_MAPPING[alert_type],
varmap={
"old_version": old_version,
"new_version": new_version,
"old_version": old_version if old_version else "N/A",
"new_version": new_version if new_version else "N/A",
},
).save()

Expand Down

0 comments on commit c541744

Please sign in to comment.