-
Notifications
You must be signed in to change notification settings - Fork 515
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
mc admin policy attach
should be idempotent
#4863
Labels
Comments
We need to discuss this internally. |
I also would be glad to to have idempotent behavior available. It doesnt have to be the default behavior if that's problematic for compatibility reasons or the like, it could be a switch like in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently, running
mc admin policy attach
fails with exit code 1 if the user already the policy attached:Command:
mc admin policy attach myminio readwrite --user someuser
Error:
This is problematic when using automation tools like Ansible that rely on idempotency. Is there are a reason why a "no update required" response is being treated like an error? Most cli tools return an exit code of 0 when no changes are required to the current state. I think that would be a better choice for this case too:
The text was updated successfully, but these errors were encountered: