-
Notifications
You must be signed in to change notification settings - Fork 79
Description
Describe the bug
The example commands shown for block-storage to create a new instance show region and block-type enclosed in apostrophe's but they are not needed.
When using the compiled release 3.4.0 of vultr-cli for windows (amd64) the examples shown are misleading. Running a command to create new block storage device using the included example returns the error:
vultr-cli block-storage create --region=sgp --size=40 --label='new-volume' --block-type='storage_opt'
Error: error creating block storage : {"error":"Unable to add block storage: Block type does not exist. Available types are: high_perf, storage_opt, storage_dev","status":400}
vultr-cli block-storage create --region='sgp' --size=40 --label='new-volume' --block-type=storage_opt
Error: error creating block storage : {"error":"Unable to add block storage: Unable to find a block storage cluster in that location.","status":400}
To Reproduce
C:\Users\example\vultr-cli_v3.4.0_windows_amd64>vultr-cli block-storage create --help
Create a new block storage resource in a specified region
Usage:
vultr-cli block-storage create [flags]
Aliases:
create, c
Examples:
#Full example
vultr-cli block-storage create --region='lax' --size=10 --label='your-label'
#Full example with block-type
vultr-cli block-storage create --region='lax' --size=10 --block-type='high_perf'
#Shortened with aliased commands
vultr-cli bs c -r='lax' -s=10 -l='your-label'
#Shortened with aliased commands and block-type
vultr-cli bs c -r='lax' -s=10 -b='high_perf'
Expected behavior
The examples are expected to be correct. However, using the provided examples returns error messages and doesn't create the requested resource.
Using the command without apostrophe's works as expected.
vultr-cli block-storage create --region=sgp --size=10 --block-type=high_perf
Desktop (please complete the following information where applicable:
- OS: Windows 10
- Version 3.4.0
Additional context
Add any other context about the problem here.