Skip to content

Commit

Permalink
Update hyperv.py
Browse files Browse the repository at this point in the history
  • Loading branch information
SRIKKANTH committed Jan 29, 2025
1 parent 2e229df commit 3f912b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lisa/tools/hyperv.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ def get_vm_disks(self, name: str) -> List[VMDisk]:
force_run=True,
output_json=True,
)
if not output:
return []
# above command returns a list of disks if there are multiple disks.
# if there is only one disk, it returns a single disk but not a list.
# so convert the output to a list if it is not already a list
Expand Down

0 comments on commit 3f912b5

Please sign in to comment.