From 5855bb71ee3e4a8a33454e098863d19b729a107f Mon Sep 17 00:00:00 2001 From: SrikanthMyakam Date: Wed, 23 Oct 2024 09:07:19 +0530 Subject: [PATCH] flake8 fixes --- lisa/features/nvme.py | 8 ++++---- microsoft/testsuites/nvme/nvme.py | 4 +--- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/lisa/features/nvme.py b/lisa/features/nvme.py index a0b1e81682..4500982f57 100644 --- a/lisa/features/nvme.py +++ b/lisa/features/nvme.py @@ -69,11 +69,11 @@ def get_devices(self) -> List[str]: devices_list.append(matched_result.group("device_name")) node_disk = self._node.features[Disk] # With disk controller type NVMe, all remote managed disks attached to the VM - # (including the OS disc) appear as NVMe devices, . - # All the remote managed disks (inclusing the OS disc) use the same NVMe + # (including the OS disc) appear as NVMe devices. + # All the remote managed disks (inclusing the OS disc) use the same NVMe # controller in the VM. - # Excluding the OS NVMe device from the list of NVMe devices will remove all remote - # managed disks. + # Excluding the OS NVMe device from the list of NVMe devices will remove + # all the remote managed disks. if node_disk.get_os_disk_controller_type() == schema.DiskControllerType.NVME: os_disk_nvme_device = self.get_os_disk_nvme_device() # Removing OS disk/device from the list. diff --git a/microsoft/testsuites/nvme/nvme.py b/microsoft/testsuites/nvme/nvme.py index e192dea6b2..01235926fb 100644 --- a/microsoft/testsuites/nvme/nvme.py +++ b/microsoft/testsuites/nvme/nvme.py @@ -332,9 +332,7 @@ def verify_nvme_rescind(self, node: Node) -> None: # 2. Enable PCI devices. lspci.enable_devices() # 3. Get PCI devices slots. - after_devices_slots = lspci.get_device_names_by_type( - DEVICE_TYPE_NVME, True, True - ) + after_devices_slots = lspci.get_device_names_by_type(DEVICE_TYPE_NVME, True) # 4. Check PCI devices are back after rescan. assert_that( after_devices_slots,