Skip to content

Commit eaa765d

Browse files
committed
fix SIM110 reimplemented-builtin
Signed-off-by: Gaëtan Lehmann <[email protected]>
1 parent 6058811 commit eaa765d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/basevm.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,7 @@ def all_vdis_on_host(self, host):
8585
return True
8686

8787
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
88+
return all(self.host.pool.get_vdi_sr_uuid(vdi_uuid) == sr.uuid for vdi_uuid in self.vdi_uuids())
9289

9390
def get_sr(self):
9491
# in this method we assume the SR of the first VDI is the VM SR

0 commit comments

Comments
 (0)