Skip to content

Commit dcd0319

Browse files
committed
address review comments
1 parent 28fcbcb commit dcd0319

File tree

195 files changed

+425
-425
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

195 files changed

+425
-425
lines changed

api/src/main/java/com/cloud/agent/api/storage/OVFHelper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ protected List<OVFDisk> extractDisksFromOvfDocumentTree(Document doc) {
335335
vd.add(od);
336336
}
337337
if (logger.isTraceEnabled()) {
338-
logger.trace(String.format("found %d disk definitions",vd.size()));
338+
logger.trace(String.format("Found %d disk definitions", vd.size()));
339339
}
340340
return vd;
341341
}
@@ -367,7 +367,7 @@ protected List<OVFFile> extractFilesFromOvfDocumentTree(File ovfFile, Document d
367367
}
368368
}
369369
if (logger.isTraceEnabled()) {
370-
logger.trace(String.format("found %d file definitions in %s",vf.size(), ovfFile.getPath()));
370+
logger.trace(String.format("Found %d file definitions in %s", vf.size(), ovfFile.getPath()));
371371
}
372372
return vf;
373373
}

api/src/main/java/org/apache/cloudstack/api/command/admin/acl/CreateRoleCmd.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,15 +101,15 @@ public void execute() {
101101

102102
private void validateRoleParameters() {
103103
if (getRoleType() == null && getRoleId() == null) {
104-
throw new ServerApiException(ApiErrorCode.PARAM_ERROR, "Neither role type nor role id is provided");
104+
throw new ServerApiException(ApiErrorCode.PARAM_ERROR, "Neither role type nor role ID is provided");
105105
}
106106

107107
if (getRoleType() != null && getRoleId() != null) {
108-
throw new ServerApiException(ApiErrorCode.PARAM_ERROR, "Both role type and role id should not be specified");
108+
throw new ServerApiException(ApiErrorCode.PARAM_ERROR, "Both role type and role ID should not be specified");
109109
}
110110

111111
if (getRoleId() != null && getRoleId() < 1L) {
112-
throw new ServerApiException(ApiErrorCode.PARAM_ERROR, "Invalid role id provided");
112+
throw new ServerApiException(ApiErrorCode.PARAM_ERROR, "Invalid role ID provided");
113113
}
114114
}
115115

api/src/main/java/org/apache/cloudstack/api/command/admin/address/ReleasePodIpCmdByAdmin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public void execute() {
7070
response.setDisplayText("IP is released successfully");
7171
setResponseObject(response);
7272
} else {
73-
throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, "Failed to release Pod ip ");
73+
throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, "Failed to release Pod IP");
7474
}
7575
}
7676
}

api/src/main/java/org/apache/cloudstack/api/command/admin/annotation/AddAnnotationCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public class AddAnnotationCmd extends BaseCmd {
4444
@Parameter(name = ApiConstants.ENTITY_TYPE, type = CommandType.STRING, description = "The following entity types are allowed VM, VOLUME, SNAPSHOT, VM_SNAPSHOT, INSTANCE_GROUP, SSH_KEYPAIR, USER_DATA, NETWORK, VPC, PUBLIC_IP_ADDRESS, VPN_CUSTOMER_GATEWAY, TEMPLATE, ISO, KUBERNETES_CLUSTER, SERVICE_OFFERING, DISK_OFFERING, NETWORK_OFFERING, ZONE, POD, CLUSTER, HOST, DOMAIN, PRIMARY_STORAGE, SECONDARY_STORAGE, VR, SYSTEM_VM, AUTOSCALE_VM_GROUP, MANAGEMENT_SERVER")
4545
private String entityType;
4646

47-
@Parameter(name = ApiConstants.ENTITY_ID, type = CommandType.STRING, description = "The id of the entity to annotate")
47+
@Parameter(name = ApiConstants.ENTITY_ID, type = CommandType.STRING, description = "The ID of the entity to annotate")
4848
private String entityUuid;
4949

5050
@Parameter(name = ApiConstants.ADMINS_ONLY, type = CommandType.BOOLEAN, since = "4.16.0",

api/src/main/java/org/apache/cloudstack/api/command/admin/annotation/ListAnnotationsCmd.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,17 @@
3737
public class ListAnnotationsCmd extends BaseListCmd {
3838

3939

40-
@Parameter(name = ApiConstants.ID, type = CommandType.STRING, description = "The id of the annotation")
40+
@Parameter(name = ApiConstants.ID, type = CommandType.STRING, description = "The ID of the annotation")
4141
private String uuid;
4242

4343
@Parameter(name = ApiConstants.ENTITY_TYPE, type = CommandType.STRING, description = "The entity type")
4444
private String entityType;
4545

46-
@Parameter(name = ApiConstants.ENTITY_ID, type = CommandType.STRING, description = "The id of the entity for which to show annotations")
46+
@Parameter(name = ApiConstants.ENTITY_ID, type = CommandType.STRING, description = "The ID of the entity for which to show annotations")
4747
private String entityUuid;
4848

4949
@Parameter(name = ApiConstants.USER_ID, type = CommandType.STRING, since = "4.16.0",
50-
description = "Optional: The id of the user of the annotation", required = false)
50+
description = "Optional: The ID of the user of the annotation", required = false)
5151
private String userUuid;
5252

5353
@Parameter(name = ApiConstants.ANNOTATION_FILTER,

api/src/main/java/org/apache/cloudstack/api/command/admin/annotation/UpdateAnnotationVisibilityCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class UpdateAnnotationVisibilityCmd extends BaseCmd {
3838

3939

4040
@Parameter(name = ApiConstants.ID, type = CommandType.STRING, required = true,
41-
description = "The id of the annotation")
41+
description = "The ID of the annotation")
4242
private String uuid;
4343

4444
@Parameter(name = ApiConstants.ADMINS_ONLY, type = CommandType.BOOLEAN, required = true,

api/src/main/java/org/apache/cloudstack/api/command/admin/cluster/AddClusterCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public class AddClusterCmd extends BaseCmd {
8585
@Parameter(name = ApiConstants.VSM_PASSWORD, type = CommandType.STRING, required = false, description = "The password for the VSM associated with this cluster")
8686
private String vsmpassword;
8787

88-
@Parameter(name = ApiConstants.VSM_IPADDRESS, type = CommandType.STRING, required = false, description = "The ipaddress of the VSM associated with this cluster")
88+
@Parameter(name = ApiConstants.VSM_IPADDRESS, type = CommandType.STRING, required = false, description = "The IP address of the VSM associated with this cluster")
8989
private String vsmipaddress;
9090

9191
@Parameter(name = ApiConstants.VSWITCH_TYPE_GUEST_TRAFFIC,

api/src/main/java/org/apache/cloudstack/api/command/admin/host/ListHostsCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public class ListHostsCmd extends BaseListCmd {
5454
@Parameter(name = ApiConstants.CLUSTER_ID, type = CommandType.UUID, entityType = ClusterResponse.class, description = "Lists hosts existing in particular cluster")
5555
private Long clusterId;
5656

57-
@Parameter(name = ApiConstants.ID, type = CommandType.UUID, entityType = HostResponse.class, description = "The id of the host")
57+
@Parameter(name = ApiConstants.ID, type = CommandType.UUID, entityType = HostResponse.class, description = "The ID of the host")
5858
private Long id;
5959

6060
@Parameter(name = ApiConstants.NAME, type = CommandType.STRING, description = "The name of the host")

api/src/main/java/org/apache/cloudstack/api/command/admin/host/UpdateHostCmd.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public class UpdateHostCmd extends BaseCmd {
4747
@Parameter(name = ApiConstants.OS_CATEGORY_ID,
4848
type = CommandType.UUID,
4949
entityType = GuestOSCategoryResponse.class,
50-
description = "The id of Os category to update the host with")
50+
description = "The ID of Os category to update the host with")
5151
private Long osCategoryId;
5252

5353
@Parameter(name = ApiConstants.ALLOCATION_STATE,
@@ -61,7 +61,7 @@ public class UpdateHostCmd extends BaseCmd {
6161
@Parameter(name = ApiConstants.IS_TAG_A_RULE, type = CommandType.BOOLEAN, description = ApiConstants.PARAMETER_DESCRIPTION_IS_TAG_A_RULE)
6262
private Boolean isTagARule;
6363

64-
@Parameter(name = ApiConstants.URL, type = CommandType.STRING, description = "The new uri for the secondary storage: nfs://host/path")
64+
@Parameter(name = ApiConstants.URL, type = CommandType.STRING, description = "The new URI for the secondary storage: nfs://host/path")
6565
private String url;
6666

6767
@Parameter(name = ApiConstants.ANNOTATION, type = CommandType.STRING, description = "Add an annotation to this host", since = "4.11", authorized = {RoleType.Admin})

api/src/main/java/org/apache/cloudstack/api/command/admin/internallb/ListInternalLoadBalancerElementsCmd.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ public class ListInternalLoadBalancerElementsCmd extends BaseListCmd {
5050
@Parameter(name = ApiConstants.ID,
5151
type = CommandType.UUID,
5252
entityType = InternalLoadBalancerElementResponse.class,
53-
description = "List internal load balancer elements by id")
53+
description = "List internal load balancer elements by ID")
5454
private Long id;
5555

5656
@Parameter(name = ApiConstants.NSP_ID,
5757
type = CommandType.UUID,
5858
entityType = ProviderResponse.class,
59-
description = "List internal load balancer elements by network service provider id")
59+
description = "List internal load balancer elements by network service provider ID")
6060
private Long nspId;
6161

6262
@Parameter(name = ApiConstants.ENABLED, type = CommandType.BOOLEAN, description = "List internal load balancer elements by enabled state")

0 commit comments

Comments
 (0)