From 8a46539bc40a9de68481ed22626647f4a34a8b93 Mon Sep 17 00:00:00 2001 From: Prachi Damle Date: Thu, 3 Apr 2014 22:41:03 -0700 Subject: [PATCH] CLOUDSTACK-6329 [Automation] Changing service offering of VM from medium to small failing with NPE - The hostAllocators were not getting set --- .../src/com/cloud/vm/VirtualMachineManagerImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/orchestration/src/com/cloud/vm/VirtualMachineManagerImpl.java b/engine/orchestration/src/com/cloud/vm/VirtualMachineManagerImpl.java index d0c8543a935..a8aae92f5c2 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 hostAllocators) { - hostAllocators = hostAllocators; + this.hostAllocators = hostAllocators; } protected List _storagePoolAllocators;