Skip to content

Commit

Permalink
Add fix pageSize
Browse files Browse the repository at this point in the history
  • Loading branch information
Negashev committed Mar 21, 2024
1 parent d325da7 commit e469f59
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rancher-vcloud-director-node-driver-ui-plugin",
"version": "0.2.0",
"version": "0.2.1",
"private": false,
"engines": {
"node": ">=12"
Expand Down
2 changes: 1 addition & 1 deletion pkg/vcd-node-driver/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vcd-node-driver",
"description": "vCloud Director node-driver plugin for rancher",
"version": "0.2.0",
"version": "0.2.1",
"private": false,
"rancher": {
"annotations": {
Expand Down
8 changes: 4 additions & 4 deletions pkg/vcd-node-driver/vcd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,19 +84,19 @@ export class Vcd {
}

public async getCatalog(value: any, initial?: string) {
return await this.getOptions(value, '/query?type=catalog', 'record', undefined, initial);
return await this.getOptions(value, '/query?type=catalog&pageSize=1000', 'record', undefined, initial);
}

public async getTemplate(value: any, catalog: string, initial?: string) {
return await this.getOptions(value, `/query?type=vAppTemplate&filter=(catalogName==${ catalog })`, 'record', undefined, initial);
return await this.getOptions(value, `/query?type=vAppTemplate&pageSize=1000&filter=(catalogName==${ catalog })`, 'record', undefined, initial);
}

public async getNetwork(value: any, initial?: string) {
return await this.getOptions(value, `/cloudapi/1.0.0/orgVdcNetworks?filterEncoded=true&filter=((crossVdcNetworkId==null))`, 'values', undefined, initial, true);
return await this.getOptions(value, `/cloudapi/1.0.0/orgVdcNetworks?filterEncoded=true&pageSize=1000&filter=((crossVdcNetworkId==null))`, 'values', undefined, initial, true);
}

public async getStorage(value: any, initial?: string) {
return await this.getOptions(value, '/query?type=orgVdcStorageProfile', 'record', undefined, initial);
return await this.getOptions(value, '/query?type=orgVdcStorageProfile&pageSize=1000', 'record', undefined, initial);
}

public async getVAppVms(value: any, api: string, initial?: string) {
Expand Down

0 comments on commit e469f59

Please sign in to comment.