1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-24 17:28:08 +00:00

Fix saved VM state was not deleted correctly.

This commit is contained in:
grossmj 2018-06-09 17:28:26 +07:00
parent 7f27cb7015
commit 1905a99ce7

View File

@ -1850,7 +1850,7 @@ class QemuVM(BaseNode):
disk = disk_image disk = disk_image
if not os.path.exists(disk): if not os.path.exists(disk):
continue continue
command = [qemu_img_path, "snapshot", "-c", snapshot_name, disk] command = [qemu_img_path, "snapshot", "-d", snapshot_name, disk]
retcode = yield from self._qemu_img_exec(command) retcode = yield from self._qemu_img_exec(command)
if retcode: if retcode:
stdout = self.read_qemu_img_stdout() stdout = self.read_qemu_img_stdout()