diff --git a/engine/orchestration/src/org/apache/cloudstack/engine/cloud/entity/api/VMEntityManagerImpl.java b/engine/orchestration/src/org/apache/cloudstack/engine/cloud/entity/api/VMEntityManagerImpl.java index 1c1b3e8940c..b91a2cabd62 100644 --- a/engine/orchestration/src/org/apache/cloudstack/engine/cloud/entity/api/VMEntityManagerImpl.java +++ b/engine/orchestration/src/org/apache/cloudstack/engine/cloud/entity/api/VMEntityManagerImpl.java @@ -196,9 +196,9 @@ public class VMEntityManagerImpl implements VMEntityManager { Long poolId = null; Map storage = vmReservation.getVolumeReservation(); if(storage != null){ - List poolIdList = new ArrayList(storage.keySet()); - if(poolIdList !=null && !poolIdList.isEmpty()){ - poolId = poolIdList.get(0); + List volIdList = new ArrayList(storage.keySet()); + if(volIdList !=null && !volIdList.isEmpty()){ + poolId = storage.get(volIdList.get(0)); } }