mirror of
https://github.com/cirruslabs/orchard.git
synced 2026-09-30 03:51:43 +02:00
Do not delete VM if a restart was requested
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user