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

Output of scw commands for RDB - Nothing to do! #4301

Open
daanpersoons opened this issue Nov 26, 2024 · 0 comments
Open

Output of scw commands for RDB - Nothing to do! #4301

daanpersoons opened this issue Nov 26, 2024 · 0 comments
Labels

Comments

@daanpersoons
Copy link

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Command attempted

scw rdb instance upgrade $id node-type=$NODE_TYPE --wait;
scw rdb instance upgrade $id volume-type=$VOLUME_TYPE --wait;
scw rdb instance upgrade $id volume-size=$VOLUME_SIZE --wait;
scw rdb instance upgrade $id enable-ha=true --wait;
scw rdb database create instance-id=$id name=$db;
scw rdb user create instance-id=$id name=$db is-admin=false;

Expected Behavior

If nothing is changed, or the specific thing already exists, I just want a stdout message "Already exists" or "Nothing to do" without error.

Actual Behavior

When I try to create something that already exists or upgrade something that already has the parameter that I try to upgrade, it returns an error.

Screenshot 2024-11-26 at 16 38 03

More info

These are not errors, please only return an error when it is an actual error. Example: trying to lower the volume_size (not possible).
I know I can check the status of the parameter/instance before I try to upgrade/create it, but this is a stupid solution.
It would be lovely if it just returns non-errors in stdout without error :)
I know I can also add <command> || true but this also overwrites actual errors which is something I don't want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant