CLOUDSTACK-2956:createStoragePools API should ignore passed clusterId

and podId parameters in creating zone scoped primary storage
This commit is contained in:
Min Chen 2013-06-17 15:41:05 -07:00
parent 3e3e5830b4
commit dff87ed7cf
1 changed files with 3 additions and 0 deletions

View File

@ -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 {