Skip to content

Commit

Permalink
Merge pull request #622 from nautobot/bootstrap_fix_621
Browse files Browse the repository at this point in the history
  • Loading branch information
jdrew82 authored Dec 7, 2024
2 parents ab1c9e2 + 695a496 commit 9ebb26f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions changes/621.fixed
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Fixed ASN updates on Location objects.
Fixed documentation on data normalization.
4 changes: 4 additions & 0 deletions docs/user/integrations/bootstrap.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ NotYetImplemented

### Data structures

### General Notes on Data in the YAML file

Data values are generally normalized in the app code. If a value is supposed to be a string and you want it to be blank or none, include a blank string (`""`) in the value. Integers should be left completely blank. Lists should be set to an empty list (`[]`), and dictionaries should be set to a blank dictionary (`{}`) in the yaml file.

#### global_settings.yml (see '../bootstrap/fixtures/global_settings.yml for examples of supported models)

```yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ def update(self, attrs):
if "facility" in attrs:
_update_location.facility = attrs["facility"]
if "asn" in attrs:
_update_location.asn = attrs["location"]
_update_location.asn = attrs["asn"]
if "time_zone" in attrs:
if attrs["time_zone"]:
_timezone = pytz.timezone(attrs["time_zone"])
Expand Down

0 comments on commit 9ebb26f

Please sign in to comment.