We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b6a21c3 + b84ee9f commit 358665aCopy full SHA for 358665a
lib/basevm.py
@@ -40,9 +40,9 @@ def name(self):
40
41
def vdi_uuids(self, sr_uuid=None):
42
output = self._disk_list()
43
- vdis = []
44
- for line in output.splitlines():
45
- vdis.append(line.split(',')[0])
+ all_uuids = output.split(',') # Split based on commas
+ # Select only every alternate UUID (even index positions)
+ vdis = all_uuids[0::2] # Start at 0, step by 2
46
47
if sr_uuid is None:
48
return vdis
0 commit comments