Skip to content

Commit

Permalink
migration should be set to completed even for failed migrations
Browse files Browse the repository at this point in the history
Signed-off-by: Vladik Romanovsky <[email protected]>
  • Loading branch information
vladikr committed Mar 1, 2019
1 parent 69a22e9 commit cfe16de
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/virt-launcher/virtwrap/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,8 @@ func (l *LibvirtDomainManager) setMigrationResultHelper(vmi *v1.VirtualMachineIn
if failed {
domainSpec.Metadata.KubeVirt.Migration.Failed = true
domainSpec.Metadata.KubeVirt.Migration.FailureReason = reason
} else {
domainSpec.Metadata.KubeVirt.Migration.Completed = true
}
domainSpec.Metadata.KubeVirt.Migration.Completed = true
domainSpec.Metadata.KubeVirt.Migration.EndTimestamp = &now

_, err = l.setDomainSpecWithHooks(vmi, domainSpec)
Expand Down

0 comments on commit cfe16de

Please sign in to comment.