config_tools: fix delete vm failed issue

fix delete vm failed issue

Tracked-On: #6691
Signed-off-by: Weiyi Feng <weiyix.feng@intel.com>
This commit is contained in:
Weiyi Feng 2022-06-05 23:12:07 +08:00 committed by acrnsi-robot
parent fb91ad9a1a
commit 9af79bd80d

View File

@ -257,7 +257,7 @@ export default {
msg = "Post-launched VMs require the Service VM. If you proceed, all post-launched VMs and their settings will also be deleted. Are you sure you want to proceed?" msg = "Post-launched VMs require the Service VM. If you proceed, all post-launched VMs and their settings will also be deleted. Are you sure you want to proceed?"
isserivevm = true isserivevm = true
} else { } else {
let vmName = this.scenario.vm[this.activeVMID].name let vmName = vmConfigcurrent.name
msg = `Delete this virtual machine? ${vmName}\n\nThe associated launch script will also be deleted if it exists.` msg = `Delete this virtual machine? ${vmName}\n\nThe associated launch script will also be deleted if it exists.`
} }
confirm(msg).then((r) => { confirm(msg).then((r) => {