Skip to content

Commit

Permalink
core: Improted VM missing in OVFSTORE
Browse files Browse the repository at this point in the history
When importing OVA that is not originated in ovirt the v will diappear after detaching it's
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 domain.

Bug-Url: https://bugzilla.redhat.com/2028242
Signed-off-by: Artiom Divak <adivak@redhat.com>
  • Loading branch information
ArtiomDivak committed Nov 9, 2022
1 parent 21f0d27 commit 1aed8b0
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 1aed8b0

Please sign in to comment.