Skip to content

Commit 66430c9

Browse files
DeployVMCmd: Remove entityType for ipToNetworkList, MAP is string->string
Remove entityType as it can confuse people, right now we process map to string data type maps<string,string> This map should be handled in cmd class level by an api writer to getObject by uuid or by long int id as in getIpToNetworkMap() of DeployVMCmd Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
1 parent 7183501 commit 66430c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/src/org/apache/cloudstack/api/command/user/vm/DeployVMCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public class DeployVMCmd extends BaseAsyncCreateCmd {
147147
private List<String> securityGroupNameList;
148148

149149
@ACL(checkKeyAccess=true)
150-
@Parameter(name = ApiConstants.IP_NETWORK_LIST, type = CommandType.MAP, entityType={Network.class, IpAddress.class},
150+
@Parameter(name = ApiConstants.IP_NETWORK_LIST, type = CommandType.MAP,
151151
description = "ip to network mapping. Can't be specified with networkIds parameter." +
152152
" Example: iptonetworklist[0].ip=10.10.10.11&iptonetworklist[0].networkid=uuid - requests to use ip 10.10.10.11 in network id=uuid")
153153
private Map ipToNetworkList;

0 commit comments

Comments
 (0)