CLOUDSTACK-2956:createStoragePools API should ignore passed clusterId
and podId parameters in creating zone scoped primary storage


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/4c26dd6a
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/4c26dd6a
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/4c26dd6a

Branch: refs/heads/disk_io_throttling
Commit: 4c26dd6ae5663e75d5303a977e786a2d920ec267
Parents: 56d390d
Author: Min Chen <[email protected]>
Authored: Mon Jun 17 15:41:05 2013 -0700
Committer: Min Chen <[email protected]>
Committed: Mon Jun 17 15:57:52 2013 -0700

----------------------------------------------------------------------
 server/src/com/cloud/storage/StorageManagerImpl.java | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/4c26dd6a/server/src/com/cloud/storage/StorageManagerImpl.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/storage/StorageManagerImpl.java 
b/server/src/com/cloud/storage/StorageManagerImpl.java
index d38b35e..655eaea 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 {

Reply via email to