Skip to content

Commit f2e00cf

Browse files
authored
snake case json fields in oxapi_demo (#614)
1 parent 751a0f5 commit f2e00cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/oxapi_demo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ function cmd_instance_create_demo
262262
# memory is 1024 * 1024 * 256
263263
[[ $# != 3 ]] && usage "expected ORGANIZATION_NAME PROJECT_NAME INSTANCE_NAME"
264264
mkjson name="$3" description="an instance called $3" ncpus=1 \
265-
memory=268435456 bootDiskSize=1 hostname="$3" |
265+
memory=268435456 boot_disk_size=1 hostname="$3" |
266266
do_curl "/organizations/$1/projects/$2/instances" -X POST -T -
267267
}
268268

@@ -338,7 +338,7 @@ function cmd_disk_delete
338338
function cmd_vpc_create_demo
339339
{
340340
[[ $# != 4 ]] && usage "expected ORGANIZATION_NAME PROJECT_NAME VPC_NAME DNS_NAME"
341-
mkjson name="$3" dnsName="$4" description="a vpc called $3" |
341+
mkjson name="$3" dns_name="$4" description="a vpc called $3" |
342342
do_curl "/organizations/$1/projects/$2/vpcs" -X POST -T -
343343
}
344344

0 commit comments

Comments
 (0)