Skip to content

Commit

Permalink
fix: 🐛 fix time_zone normalization
Browse files Browse the repository at this point in the history
  • Loading branch information
bile0026 committed Dec 6, 2024
1 parent 79a9576 commit 769f9e2
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 2 deletions.
3 changes: 2 additions & 1 deletion changes/614.fixed
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
Fixed creating platforms with no Manufacturer assigned.
Fixed creating platforms with no Manufacturer assigned.
Fixed time_zone attribute normalization on Location objects.
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ def load_location(self):
except AttributeError:
_time_zone = nb_location.time_zone
else:
_time_zone = None
_time_zone = ""
if nb_location.tenant is not None:
_tenant = nb_location.tenant.name
else:
Expand Down
17 changes: 17 additions & 0 deletions nautobot_ssot/integrations/bootstrap/fixtures/global_settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,23 @@ location:
contact_phone: ""
contact_email: ""
tags: []
- name: "Southwest"
location_type: "Region"
parent: ""
status: "Active"
facility: "OR1"
asn:
time_zone: ""
description: ""
tenant: ""
physical_address: ""
shipping_address: ""
latitude:
longitude:
contact_name: ""
contact_phone: ""
contact_email: ""
tags: []
team:
- name: "Datacenter"
phone: "123-456-7890"
Expand Down
14 changes: 14 additions & 0 deletions nautobot_ssot/tests/bootstrap/fixtures/global_settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,20 @@
"contact_phone": "",
"contact_email": "",
"tags": []
},
{
"name": "Southwest",
"location_type": "Region",
"status": "Active",
"facility": "OR1",
"time_zone": "",
"description": "",
"physical_address": "",
"shipping_address": "",
"contact_name": "",
"contact_phone": "",
"contact_email": "",
"tags": []
}
],
"team": [
Expand Down

0 comments on commit 769f9e2

Please sign in to comment.