Do not delete VM if a restart was requested
This commit is contained in:
parent
a7a0dea41b
commit
9997449e81
|
|
@ -455,7 +455,7 @@ func (vm *VM) Restart() {
|
|||
}
|
||||
|
||||
func (vm *VM) Delete() error {
|
||||
if !vm.cloned.Load() {
|
||||
if !vm.cloned.Load() || vm.Resource.RestartRequested {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue