From 49bdaeba5466958d7e057c5dd9b232675a88152d Mon Sep 17 00:00:00 2001 From: "Zach Biles @bile0026" Date: Sat, 11 Jan 2025 17:44:44 -0600 Subject: [PATCH] =?UTF-8?q?style:=20=F0=9F=8E=A8=20fix=20ruff=20errors?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../integrations/librenms/diffsync/adapters/librenms.py | 2 -- nautobot_ssot/tests/librenms/test_librenms_adapter.py | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/nautobot_ssot/integrations/librenms/diffsync/adapters/librenms.py b/nautobot_ssot/integrations/librenms/diffsync/adapters/librenms.py index 15b7acaa..ff8edca8 100644 --- a/nautobot_ssot/integrations/librenms/diffsync/adapters/librenms.py +++ b/nautobot_ssot/integrations/librenms/diffsync/adapters/librenms.py @@ -118,7 +118,6 @@ def load(self): self.job.logger.info(f'Loading {all_devices["count"]} Devices from LibreNMS.') - for _device in all_devices["devices"]: self.load_device(device=_device) @@ -140,7 +139,6 @@ def load(self): self.job.logger.info(f'Loading {all_locations["count"]} Locations from LibreNMS.') - for _location in all_locations["locations"]: self.load_location(location=_location) else: diff --git a/nautobot_ssot/tests/librenms/test_librenms_adapter.py b/nautobot_ssot/tests/librenms/test_librenms_adapter.py index 1f549be9..bf076508 100644 --- a/nautobot_ssot/tests/librenms/test_librenms_adapter.py +++ b/nautobot_ssot/tests/librenms/test_librenms_adapter.py @@ -28,7 +28,7 @@ def setUp(self): name="Active", defaults={ "color": "4caf50", - } + }, ) self.active_status.content_types.add(ContentType.objects.get_for_model(Device)) self.active_status.content_types.add(ContentType.objects.get_for_model(Location)) @@ -41,11 +41,11 @@ def setUp(self): # Mock device and location data self.librenms_client.get_librenms_devices_from_file.return_value = { "count": len(DEVICE_FIXTURE_RECV), - "devices": DEVICE_FIXTURE_RECV + "devices": DEVICE_FIXTURE_RECV, } self.librenms_client.get_librenms_locations_from_file.return_value = { "count": len(LOCATION_FIXURE_RECV), - "locations": LOCATION_FIXURE_RECV + "locations": LOCATION_FIXURE_RECV, } self.job = LibrenmsDataSource()