From c2aabcb65a13d1bc389c0197c22a24c466964417 Mon Sep 17 00:00:00 2001 From: Brandon Minnix Date: Thu, 12 Dec 2024 00:33:38 -0500 Subject: [PATCH] Changed for ruff recommendation --- .../jobs/lifecycle_reporting.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/nautobot_device_lifecycle_mgmt/jobs/lifecycle_reporting.py b/nautobot_device_lifecycle_mgmt/jobs/lifecycle_reporting.py index a7cbd19a..07049f07 100644 --- a/nautobot_device_lifecycle_mgmt/jobs/lifecycle_reporting.py +++ b/nautobot_device_lifecycle_mgmt/jobs/lifecycle_reporting.py @@ -132,8 +132,12 @@ def run(self, **filters) -> None: # pylint: disable=arguments-differ # Get versioned and non-versioned devices for platform, tenant in filtered_products: - versioned_devices.extend(Device.objects.filter(platform=platform, tenant=tenant, software_version__isnull=False)) - non_versioned_devices.extend(Device.objects.filter(platform=platform, tenant=tenant, software_version__isnull=True)) + versioned_devices.extend( + Device.objects.filter(platform=platform, tenant=tenant, software_version__isnull=False) + ) + non_versioned_devices.extend( + Device.objects.filter(platform=platform, tenant=tenant, software_version__isnull=True) + ) # Validate devices without software version for device in non_versioned_devices: