Skip to content

Commit 22a6f93

Browse files
ArtiomDivakahadas
authored andcommitted
core: Imported VM missing in OVFSTORE
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 <[email protected]> Signed-off-by: Arik Hadas <[email protected]>
1 parent 55911c0 commit 22a6f93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/GetVmFromOvaQuery.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ protected VM parseOvf(String ovf) {
4141
vm = getVmInfoFromOvaFile();
4242
}
4343

44-
if (originOvirt && vm != null) {
45-
vm.setOrigin(OriginType.OVIRT);
44+
if (vm != null) {
45+
vm.setOrigin(originOvirt ? OriginType.OVIRT : OriginType.VMWARE);
4646
}
4747

4848
return vm;

0 commit comments

Comments
 (0)