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.

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 d5d7d42 commit 3fe7dfb
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 3fe7dfb

Please sign in to comment.