Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] - Block-storage create does not accept input enclosed with apostrophe's #501

Open
ezascanbe opened this issue Jan 7, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@ezascanbe
Copy link

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.

@ezascanbe ezascanbe added the bug Something isn't working label Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant