From e45bc5aec15ab463af4d545a432e79297cf466b9 Mon Sep 17 00:00:00 2001 From: Bernhard Ehlers Date: Thu, 5 Nov 2020 15:00:44 +0100 Subject: [PATCH] Fix mcopy error messages --- gns3server/compute/qemu/qemu_vm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gns3server/compute/qemu/qemu_vm.py b/gns3server/compute/qemu/qemu_vm.py index e421790a..5b2ffe5d 100644 --- a/gns3server/compute/qemu/qemu_vm.py +++ b/gns3server/compute/qemu/qemu_vm.py @@ -1678,9 +1678,9 @@ class QemuVM(BaseNode): mbr = img_file.read(512) part_type, offset, signature = struct.unpack("<450xB3xL52xH", mbr) if signature != 0xAA55: - raise OSError("mcopy failure: {}: invalid MBR".format(image)) + raise OSError("{}: invalid MBR".format(image)) if part_type not in (1, 4, 6, 11, 12, 14): - raise OSError("mcopy failure: {}: invalid partition type {:02X}" + raise OSError("{}: invalid partition type {:02X}" .format(image, part_type)) part_image = image + "@@{}S".format(offset)