Skip to content

Commit e5335cd

Browse files
author
Alena Prokharchyk
committed
CLOUDSTACK-2789: UpdateVPC shouldn't require name parameter
1 parent 8065ee4 commit e5335cd

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

api/src/org/apache/cloudstack/api/BaseAsyncCustomIdCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
public abstract class BaseAsyncCustomIdCmd extends BaseAsyncCmd {
2121
@Parameter(name = ApiConstants.CUSTOM_ID,
2222
type = CommandType.STRING,
23-
description = "an optional field, in case you want to set a custom id to the resource. Allowed to Root Admins only")
23+
description = "an optional field, in case you want to set a custom id to the resource. Allowed to Root Admins only", since = "4.4")
2424
private String customId;
2525

2626
public String getCustomId() {

api/src/org/apache/cloudstack/api/BaseCustomIdCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public abstract class BaseCustomIdCmd extends BaseCmd {
2020

2121
@Parameter(name = ApiConstants.CUSTOM_ID,
2222
type = CommandType.STRING,
23-
description = "an optional field, in case you want to set a custom id to the resource. Allowed to Root Admins only")
23+
description = "an optional field, in case you want to set a custom id to the resource. Allowed to Root Admins only", since = "4.4")
2424
private String customId;
2525

2626
public String getCustomId() {

api/src/org/apache/cloudstack/api/command/user/vpc/UpdateVPCCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public class UpdateVPCCmd extends BaseAsyncCustomIdCmd {
4242
@Parameter(name = ApiConstants.ID, type = CommandType.UUID, entityType = VpcResponse.class, required = true, description = "the id of the VPC")
4343
private Long id;
4444

45-
@Parameter(name = ApiConstants.NAME, type = CommandType.STRING, description = "the name of the VPC", required = true)
45+
@Parameter(name = ApiConstants.NAME, type = CommandType.STRING, description = "the name of the VPC")
4646
private String vpcName;
4747

4848
@Parameter(name = ApiConstants.DISPLAY_TEXT, type = CommandType.STRING, description = "the display text of the VPC")

server/src/com/cloud/network/vpc/VpcManagerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ public Vpc updateVpc(long vpcId, String vpcName, String displayText, String cust
776776
// Verify input parameters
777777
VpcVO vpcToUpdate = _vpcDao.findById(vpcId);
778778
if (vpcToUpdate == null) {
779-
throw new InvalidParameterValueException("Unable to find vpc offering " + vpcId);
779+
throw new InvalidParameterValueException("Unable to find vpc by id " + vpcId);
780780
}
781781

782782
_accountMgr.checkAccess(caller, null, false, vpcToUpdate);

0 commit comments

Comments
 (0)