CLOUDSTACK-6329 [Automation] Changing service offering of VM from medium to small failing with NPE
- The hostAllocators were not getting set Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/8a46539b Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/8a46539b Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/8a46539b Branch: refs/heads/4.4 Commit: 8a46539bc40a9de68481ed22626647f4a34a8b93 Parents: 8ddf0a4 Author: Prachi Damle <pra...@cloud.com> Authored: Thu Apr 3 22:41:03 2014 -0700 Committer: Prachi Damle <pra...@cloud.com> Committed: Thu Apr 3 23:07:13 2014 -0700 ---------------------------------------------------------------------- .../orchestration/src/com/cloud/vm/VirtualMachineManagerImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/8a46539b/engine/orchestration/src/com/cloud/vm/VirtualMachineManagerImpl.java ---------------------------------------------------------------------- diff --git a/engine/orchestration/src/com/cloud/vm/VirtualMachineManagerImpl.java b/engine/orchestration/src/com/cloud/vm/VirtualMachineManagerImpl.java index d0c8543..a8aae92 100755 --- a/engine/orchestration/src/com/cloud/vm/VirtualMachineManagerImpl.java +++ b/engine/orchestration/src/com/cloud/vm/VirtualMachineManagerImpl.java @@ -290,7 +290,7 @@ public class VirtualMachineManagerImpl extends ManagerBase implements VirtualMac } public void setHostAllocators(List<HostAllocator> hostAllocators) { - hostAllocators = hostAllocators; + this.hostAllocators = hostAllocators; } protected List<StoragePoolAllocator> _storagePoolAllocators;