From 2356a43428eb51b85995a67dad1b21a11b7c3fe8 Mon Sep 17 00:00:00 2001 From: Justin Drew <2396364+jdrew82@users.noreply.github.com> Date: Thu, 9 Jan 2025 12:01:08 -0600 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Fix=20Device=20floor=20na?= =?UTF-8?q?me=20being=20incorrectly=20set=20to=20include=20Building=20name?= =?UTF-8?q?=20when=20it=20shouldn't.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- changes/650.fixed | 1 + .../integrations/dna_center/diffsync/adapters/dna_center.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changes/650.fixed diff --git a/changes/650.fixed b/changes/650.fixed new file mode 100644 index 00000000..106bdd04 --- /dev/null +++ b/changes/650.fixed @@ -0,0 +1 @@ +Fixed Device floor name being incorrectly defined and including Building name when it shouldn't. \ No newline at end of file diff --git a/nautobot_ssot/integrations/dna_center/diffsync/adapters/dna_center.py b/nautobot_ssot/integrations/dna_center/diffsync/adapters/dna_center.py index d6561983..b9a147e5 100644 --- a/nautobot_ssot/integrations/dna_center/diffsync/adapters/dna_center.py +++ b/nautobot_ssot/integrations/dna_center/diffsync/adapters/dna_center.py @@ -376,7 +376,7 @@ def load_devices(self): if loc_data.get("floor") and loc_data["building"] not in loc_data["floor"]: floor_name = f"{loc_data['building']} - {loc_data['floor']}" elif loc_data.get("floor"): - floor_name = f"{loc_data['building']} - {loc_data['floor']}" + floor_name = loc_data["floor"] else: floor_name = None new_dev = self.device(