Skip to content

Commit 31d71e1

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

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
@@ -311,7 +311,7 @@ def connect_vdi(self, vdi: VDI, device: str = "autodetect") -> str:
311311

312312
def disconnect_vdi(self, vdi: VDI):
313313
logging.info(f"<< Unplugging VDI {vdi.uuid} from VM {self.uuid}")
314-
assert vdi in self.vdis, "VDI {vdi.uuid} not in VM {self.uuid} VDI list"
314+
assert vdi in self.vdis, f"VDI {vdi.uuid} not in VM {self.uuid} VDI list"
315315
vbd_uuid = self.host.xe("vbd-list", {
316316
"vdi-uuid": vdi.uuid,
317317
"vm-uuid": self.uuid

0 commit comments

Comments
 (0)