cloudstack/server/src/com/cloud/deploy
prachi 3624fee85d Changed the interface in StoragePoolAllocator to avoid a potential NPE in LocalStoragePoolAllocator. Allocators were taking in an instance of VM enclosed inside VirtualMachineProfile.
However in case of createVolume from Snapshot, there is no VM associated. So VM passed is null and this can cause a NPE.

Allocators hardly use the VM instance. LocalStoragePoolAllocator was mainly using it for checking if host has capacity. But it need not do this check, since that is done by HostAllocators anyway.
So removing the use of VM in StoragePoolAllocators.
2011-03-09 10:12:04 -08:00
..
BareMetalPlanner.java Bug 8208 - bare metal provisioning 2011-03-01 17:47:37 -08:00
FirstFitPlanner.java Changed the interface in StoragePoolAllocator to avoid a potential NPE in LocalStoragePoolAllocator. Allocators were taking in an instance of VM enclosed inside VirtualMachineProfile. 2011-03-09 10:12:04 -08:00
PlannerBase.java more changes 2010-09-22 10:43:59 -07:00
SimplePlanner.java Bug 8208 - bare metal provisioning 2011-03-01 17:47:37 -08:00