-
Notifications
You must be signed in to change notification settings - Fork 138
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
OCM-6407 | edit option sends an empty payload #601
Conversation
I suggest to use |
I see there is also used in this cli tool the builtin args validator.
If I remove the clusterNeedsUpdate bool, I see a possible problem when the --enable-delete-protection parameter is added. As that parameter doesn't require to update the cluster. |
Why not? it requires a patch to the /delete_protection endpoint. It's not the cluster's endpoint, but it's still semantically updating the cluster. |
This commit adds a parameter when creating the command that check for a minimum amount of arguments. The command will fail if no parameters are used. Signed-off-by: Alba Hita Catala <[email protected]>
Agree with @ahitacat in case we will use the [1] ocm-cli/cmd/ocm/edit/cluster/cmd.go Line 271 in 1095264
|
Ah did not know about the #603 should be good. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
EDIT
This commit adds a parameter when creating the command that check for a minimum amount of arguments. The
command will fail if no parameters are used.