Skip to content

Commit 97e466e

Browse files
authored
Add validation to USER_API_KEY parameter
1 parent c484771 commit 97e466e

File tree

1 file changed

+1
-1
lines changed
  • api/src/main/java/org/apache/cloudstack/api/command/admin/user

1 file changed

+1
-1
lines changed

api/src/main/java/org/apache/cloudstack/api/command/admin/user/GetUserCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public class GetUserCmd extends BaseCmd {
3535
//////////////// API parameters /////////////////////
3636
/////////////////////////////////////////////////////
3737

38-
@Parameter(name = ApiConstants.USER_API_KEY, type = CommandType.STRING, required = true, description = "API key of the user")
38+
@Parameter(name = ApiConstants.USER_API_KEY, type = CommandType.STRING, required = true, description = "API key of the user", validations = {ApiArgValidator.NotNullOrEmpty})
3939
private String apiKey;
4040

4141
/////////////////////////////////////////////////////

0 commit comments

Comments
 (0)