Skip to content

Commit 7dce841

Browse files
committed
Fixed API xml doc generation
1 parent f95d845 commit 7dce841

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

‎api/src/com/cloud/api/BaseListCmd.java‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
public abstract class BaseListCmd extends BaseCmd {
88

9-
private static final Long MAX_PAGESIZE = _configService.getDefaultPageSize();
9+
private static Long MAX_PAGESIZE = 500L;
1010

1111
/////////////////////////////////////////////////////
1212
/////////// BaseList API parameters /////////////////
@@ -38,6 +38,11 @@ public Integer getPageSize() {
3838
return pageSize;
3939
}
4040

41+
42+
static void configure() {
43+
MAX_PAGESIZE = _configService.getDefaultPageSize();
44+
}
45+
4146
@Override
4247
public long getEntityOwnerId() {
4348
//no owner is needed for list command

‎server/src/com/cloud/api/ApiServer.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ public Properties get_apiCommands() {
161161
public void init(String[] apiConfig) {
162162
try {
163163
BaseCmd.setComponents(new ApiResponseHelper());
164+
BaseListCmd.configure();
164165
_apiCommands = new Properties();
165166
Properties preProcessedCommands = new Properties();
166167
if (apiConfig != null) {

0 commit comments

Comments
 (0)