diff --git a/changes/206.added b/changes/206.added new file mode 100644 index 0000000..76f4c60 --- /dev/null +++ b/changes/206.added @@ -0,0 +1 @@ +Added reference to constant importer. diff --git a/nautobot_netbox_importer/diffsync/models/locations.py b/nautobot_netbox_importer/diffsync/models/locations.py index d4e01ce..4a6ce91 100644 --- a/nautobot_netbox_importer/diffsync/models/locations.py +++ b/nautobot_netbox_importer/diffsync/models/locations.py @@ -175,9 +175,11 @@ def forward_references(wrapper: SourceModelWrapper, references: SourceReferences "dcim.SiteGroup", nautobot_content_type="dcim.LocationType", fields={ - "parent": fields.constant(region_type_uid, reference=location_type_wrapper) - if sitegroup_parent_always_region - else "parent", + "parent": ( + fields.constant(region_type_uid, reference=location_type_wrapper) + if sitegroup_parent_always_region + else "parent" + ), "nestable": fields.constant(True), }, )