mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
api: createStoragePool requires podId, clusterId
The CreateStoragePool API requires that podId, clusterId be passed or it fails. Bug found in cli, which in turn got it from Marvin, which got it from commands.xml which got from ApiXmlDocWriter. Patch adds required field on podId, so it trickle downs to cli. Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
This commit is contained in:
parent
6c30700fa4
commit
860d1bc73d
@ -45,7 +45,7 @@ public class CreateStoragePoolCmd extends BaseCmd {
|
||||
/////////////////////////////////////////////////////
|
||||
|
||||
@IdentityMapper(entityTableName="cluster")
|
||||
@Parameter(name=ApiConstants.CLUSTER_ID, type=CommandType.LONG, description="the cluster ID for the storage pool")
|
||||
@Parameter(name=ApiConstants.CLUSTER_ID, type=CommandType.LONG, required=true, description="the cluster ID for the storage pool")
|
||||
private Long clusterId;
|
||||
|
||||
@Parameter(name=ApiConstants.DETAILS, type=CommandType.MAP, description="the details for the storage pool")
|
||||
@ -55,7 +55,7 @@ public class CreateStoragePoolCmd extends BaseCmd {
|
||||
private String storagePoolName;
|
||||
|
||||
@IdentityMapper(entityTableName="host_pod_ref")
|
||||
@Parameter(name=ApiConstants.POD_ID, type=CommandType.LONG, description="the Pod ID for the storage pool")
|
||||
@Parameter(name=ApiConstants.POD_ID, type=CommandType.LONG, required=true, description="the Pod ID for the storage pool")
|
||||
private Long podId;
|
||||
|
||||
@Parameter(name=ApiConstants.TAGS, type=CommandType.STRING, description="the tags for the storage pool")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user