vultr / vultr-cli

Official command line tool for Vultr services
Apache License 2.0
469 stars 75 forks source link

[BUG] - Error: error parsing flag 'mysql-long-query-time' for database update : trying to get int value of flag of type string #464

Closed wela-elman closed 3 weeks ago

wela-elman commented 3 weeks ago

Describe the bug I'm using the docker version of cli, and I'm trying to update my mysql config. I keep getting this error. The problem is I didn't supply this flag to my command. I can't proceed because of this.

To Reproduce Steps to reproduce the behavior:

  1. Pull latest docker command
  2. Execute this command,

docker run -e VULTR_API_KEY='API_KEY' vultr/vultr-cli:latest database update --mysql-require-primary-key datase_id

  1. See error

Error: error parsing flag 'mysql-long-query-time' for database update : trying to get int value of flag of type string

Expected behavior No error should show about flag 'mysql-long-query-time' since I didn't supply

Desktop (please complete the following information where applicable: Docker Engine: 27.0.1 OS/Arch: linux/amd64 Docker Image: sha256:940e1bb3e2d20b58d3cb981e09d127543f748ea246b8346b4c4e4571e2d5b9a0

optik-aper commented 3 weeks ago

Thanks for the report! I see the issue stemming from a string in the default flag value. I will get a bug fix out today.