From dff87ed7cf048fb845bb6f466587d60cf3f8fcb7 Mon Sep 17 00:00:00 2001 From: Min Chen Date: Mon, 17 Jun 2013 15:41:05 -0700 Subject: [PATCH] CLOUDSTACK-2956:createStoragePools API should ignore passed clusterId and podId parameters in creating zone scoped primary storage --- server/src/com/cloud/storage/StorageManagerImpl.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/src/com/cloud/storage/StorageManagerImpl.java b/server/src/com/cloud/storage/StorageManagerImpl.java index d38b35ea47c..655eaeab2b1 100755 --- a/server/src/com/cloud/storage/StorageManagerImpl.java +++ b/server/src/com/cloud/storage/StorageManagerImpl.java @@ -777,6 +777,9 @@ public class StorageManagerImpl extends ManagerBase implements StorageManager, C HypervisorType hypervisorType = HypervisorType.KVM; if (scopeType == ScopeType.ZONE) { + // ignore passed clusterId and podId + clusterId = null; + podId = null; String hypervisor = cmd.getHypervisor(); if (hypervisor != null) { try {