Skip to content

Commit

Permalink
flake8 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
SRIKKANTH committed Oct 23, 2024
1 parent 1264464 commit 5855bb7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
8 changes: 4 additions & 4 deletions lisa/features/nvme.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 1 addition & 3 deletions microsoft/testsuites/nvme/nvme.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5855bb7

Please sign in to comment.