diff --git a/changes/621.fixed b/changes/621.fixed new file mode 100644 index 00000000..51e48ff3 --- /dev/null +++ b/changes/621.fixed @@ -0,0 +1,2 @@ +Fixed ASN updates on Location objects. +Fixed documentation on data normalization. \ No newline at end of file diff --git a/docs/user/integrations/bootstrap.md b/docs/user/integrations/bootstrap.md index 94b89dad..8d881c00 100644 --- a/docs/user/integrations/bootstrap.md +++ b/docs/user/integrations/bootstrap.md @@ -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 diff --git a/nautobot_ssot/integrations/bootstrap/diffsync/models/nautobot.py b/nautobot_ssot/integrations/bootstrap/diffsync/models/nautobot.py index 76081a68..3b5de750 100755 --- a/nautobot_ssot/integrations/bootstrap/diffsync/models/nautobot.py +++ b/nautobot_ssot/integrations/bootstrap/diffsync/models/nautobot.py @@ -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"])