CLOUDSTACK-1830: ZWPS: NPE while create volume from snapshot

This commit is contained in:
Harikrishna Patnala 2013-04-02 19:11:08 +05:30 committed by Edison Su
parent b798c45114
commit 6110e00c54
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ public class ZoneWideStoragePoolAllocator extends AbstractStoragePoolAllocator {
VirtualMachineProfile<? extends VirtualMachine> vmProfile,
DeploymentPlan plan, ExcludeList avoid, int returnUpTo) {
List<StoragePool> suitablePools = new ArrayList<StoragePool>();
HypervisorType hypervisor = vmProfile.getHypervisorType();
HypervisorType hypervisor = dskCh.getHypersorType();
if (hypervisor != null) {
if (hypervisor != HypervisorType.KVM) {
s_logger.debug("Only kvm supports zone wide storage");