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,