Skip to content

Commit

Permalink
Fix handling expectaions when restarting VM
Browse files Browse the repository at this point in the history
Signed-off-by: Petr Kotas <[email protected]>
  • Loading branch information
petrkotas committed Mar 7, 2018
1 parent 38b0234 commit 395ea6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/virt-controller/watch/ovm.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,10 @@ func (c *OVMController) startStop(ovm *virtv1.OfflineVirtualMachine, vm *virtv1.
log.Log.Object(ovm).Error("Cannot restart VM, the VM cannot be deleted.")
return err
}
} else {
// VM is OK no need to do anything
return nil
// return to let the controller pick up the expected deletion
}
// VM is OK no need to do anything
return nil
}

err := c.startVM(ovm)
Expand Down

0 comments on commit 395ea6e

Please sign in to comment.