Skip to content

Commit

Permalink
core: Imported VM missing in OVFSTORE
Browse files Browse the repository at this point in the history
When importing an OVA that is not originated in oVirt the VM will diappear
after detaching its storage domain. The vm will not be seen in the import VM
tab. From now on even if the imported VM is no originated in ovirt it could
be imported after detaching the storage domain.

Bug-Url: https://bugzilla.redhat.com/2028242
Signed-off-by: Artiom Divak <adivak@redhat.com>
Signed-off-by: Arik Hadas <ahadas@redhat.com>
  • Loading branch information
ArtiomDivak authored and ahadas committed Nov 9, 2022
1 parent 53bf827 commit ea7bc22
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ protected VM parseOvf(String ovf) {
vm = getVmInfoFromOvaFile();
}

if (originOvirt && vm != null) {
vm.setOrigin(OriginType.OVIRT);
if (vm != null) {
vm.setOrigin(originOvirt ? OriginType.OVIRT : OriginType.VMWARE);
}

return vm;
Expand Down

0 comments on commit ea7bc22

Please sign in to comment.