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.
1 parent 6058811 commit eaa765dCopy full SHA for eaa765d
lib/basevm.py
@@ -85,10 +85,7 @@ def all_vdis_on_host(self, host):
85
return True
86
87
def all_vdis_on_sr(self, sr) -> bool:
88
- for vdi_uuid in self.vdi_uuids():
89
- if self.host.pool.get_vdi_sr_uuid(vdi_uuid) != sr.uuid:
90
- return False
91
- return True
+ return all(self.host.pool.get_vdi_sr_uuid(vdi_uuid) == sr.uuid for vdi_uuid in self.vdi_uuids())
92
93
def get_sr(self):
94
# in this method we assume the SR of the first VDI is the VM SR
0 commit comments