Skip to content

Commit f8fe4c8

Browse files
amoghvDaanHoogland
authored andcommitted
CLOUDSTACK-6915: Include searching deleted OS entries
(cherry picked from commit de04881)
1 parent ade82be commit f8fe4c8

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎plugins/hypervisors/vmware/src/com/cloud/hypervisor/guru/VMwareGuru.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ public VirtualMachineTO implement(VirtualMachineProfile vm) {
310310
}
311311
}
312312
// Determine the VM's OS description
313-
GuestOSVO guestOS = _guestOsDao.findById(vm.getVirtualMachine().getGuestOSId());
313+
GuestOSVO guestOS = _guestOsDao.findByIdIncludingRemoved(vm.getVirtualMachine().getGuestOSId());
314314
to.setOs(guestOS.getDisplayName());
315315
to.setHostName(vm.getHostName());
316316
HostVO host = _hostDao.findById(vm.getVirtualMachine().getHostId());

‎plugins/hypervisors/xen/src/com/cloud/hypervisor/XenServerGuru.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public VirtualMachineTO implement(VirtualMachineProfile vm) {
8989
to.setBootloader(bt);
9090

9191
// Determine the VM's OS description
92-
GuestOSVO guestOS = _guestOsDao.findById(vm.getVirtualMachine().getGuestOSId());
92+
GuestOSVO guestOS = _guestOsDao.findByIdIncludingRemoved(vm.getVirtualMachine().getGuestOSId());
9393
to.setOs(guestOS.getDisplayName());
9494
HostVO host = hostDao.findById(vm.getVirtualMachine().getHostId());
9595
GuestOSHypervisorVO guestOsMapping = _guestOsHypervisorDao.findByOsIdAndHypervisor(guestOS.getId(), getHypervisorType().toString(), host.getHypervisorVersion());

‎server/src/com/cloud/hypervisor/KVMGuru.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public VirtualMachineTO implement(VirtualMachineProfile vm) {
5757
VirtualMachineTO to = toVirtualMachineTO(vm);
5858

5959
// Determine the VM's OS description
60-
GuestOSVO guestOS = _guestOsDao.findById(vm.getVirtualMachine().getGuestOSId());
60+
GuestOSVO guestOS = _guestOsDao.findByIdIncludingRemoved(vm.getVirtualMachine().getGuestOSId());
6161
to.setOs(guestOS.getDisplayName());
6262
HostVO host = _hostDao.findById(vm.getVirtualMachine().getHostId());
6363
GuestOSHypervisorVO guestOsMapping = _guestOsHypervisorDao.findByOsIdAndHypervisor(guestOS.getId(), getHypervisorType().toString(), host.getHypervisorVersion());

0 commit comments

Comments
 (0)