Skip to content

Commit bb23281

Browse files
committed
Fix non-expanded values in disconnect_vdi() assert
Signed-off-by: Gaëtan Lehmann <[email protected]>
1 parent 6ae729c commit bb23281

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/vm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ def connect_vdi(self, vdi: VDI, device: str = "autodetect") -> str:
322322

323323
def disconnect_vdi(self, vdi: VDI):
324324
logging.info(f"<< Unplugging VDI {vdi.uuid} from VM {self.uuid}")
325-
assert vdi in self.vdis, "VDI {vdi.uuid} not in VM {self.uuid} VDI list"
325+
assert vdi in self.vdis, f"VDI {vdi.uuid} not in VM {self.uuid} VDI list"
326326
vbd_uuid = self.host.xe("vbd-list", {
327327
"vdi-uuid": vdi.uuid,
328328
"vm-uuid": self.uuid

0 commit comments

Comments
 (0)