Skip to content

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

@daanpersoons

Description

@daanpersoons

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.

Metadata

Metadata

Assignees

Labels

bugpriority:lowLow priority such as UX improvements and estheticsrdbManaged MySQL and PostgreSQL issues, bugs and feature requests

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions