virt-handler: simplify post migration proxy cleanup
The `handlePostMigrationProxyCleanup` function returns an error, but
there's nothing in its implementation that might fail. Thus, it's
perfectly fine to simplify its signature.
@@ -2396,13 +2396,11 @@ func (d *VirtualMachineController) handleTargetMigrationProxy(vmi *v1.VirtualMac
return nil
}
-func (d *VirtualMachineController) handlePostMigrationProxyCleanup(vmi *v1.VirtualMachineInstance) error {
-
+func (d *VirtualMachineController) handlePostMigrationProxyCleanup(vmi *v1.VirtualMachineInstance) {
if vmi.Status.MigrationState == nil || vmi.Status.MigrationState.Completed || vmi.Status.MigrationState.Failed {
d.migrationProxy.StopTargetListener(string(vmi.UID))
d.migrationProxy.StopSourceListener(string(vmi.UID))
}
- return nil
}
func (d *VirtualMachineController) handleSourceMigrationProxy(vmi *v1.VirtualMachineInstance) error {
