You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api/src/main/java/org/apache/cloudstack/api/command/admin/user/UpdateUserCmd.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,7 @@ public class UpdateUserCmd extends BaseCmd {
66
66
@Parameter(name = ApiConstants.CURRENT_PASSWORD, type = CommandType.STRING, description = "Current password that was being used by the user. You must inform the current password when updating the password.", acceptedOnAdminPort = false)
67
67
privateStringcurrentPassword;
68
68
69
-
@Parameter(name = ApiConstants.SECRET_KEY, type = CommandType.STRING, description = "The secret key for the user. Must be specified with userApiKey")
69
+
@Parameter(name = ApiConstants.USER_SECRET_KEY, type = CommandType.STRING, description = "The secret key for the user. Must be specified with userApiKey")
if (viewDetails == null || viewDetails.size() <= 0) {
243
-
dv = EnumSet.of(VMDetails.all);
244
-
} else {
245
-
try {
246
-
ArrayList<VMDetails> dc = newArrayList<VMDetails>();
247
-
for (Stringdetail : viewDetails) {
248
-
dc.add(VMDetails.valueOf(detail));
249
-
}
250
-
dv = EnumSet.copyOf(dc);
251
-
} catch (IllegalArgumentExceptione) {
252
-
thrownewInvalidParameterValueException("The details parameter contains a non permitted value. The allowed values are " + EnumSet.allOf(VMDetails.class));
247
+
if (isViewDetailsEmpty()) {
248
+
if (_queryService.ReturnVmStatsOnVmList.value()) {
thrownewInvalidParameterValueException("The details parameter contains a non permitted value. The allowed values are " + EnumSet.allOf(VMDetails.class));
"If false, changes the listVirtualMachines default details to [group, nics, secgrp, tmpl, servoff, diskoff, backoff, iso, volume, min, affgrp], so that the VMs' stats" +
130
+
" are not returned by default when listing VMs; only when the 'stats' or 'all' detail is informed.", true, ConfigKey.Scope.Global);
0 commit comments