Skip to content

Commit

Permalink
Changed for ruff recommendation
Browse files Browse the repository at this point in the history
  • Loading branch information
bminnix committed Dec 12, 2024
1 parent 892e2e6 commit c2aabcb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions nautobot_device_lifecycle_mgmt/jobs/lifecycle_reporting.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c2aabcb

Please sign in to comment.