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

chef_acl provider updates the acls unnecessarily #75

Closed
ckaushik opened this issue Sep 23, 2015 · 0 comments · Fixed by #76
Closed

chef_acl provider updates the acls unnecessarily #75

ckaushik opened this issue Sep 23, 2015 · 0 comments · Fixed by #76
Labels
Type: Bug Does not work as expected.

Comments

@ckaushik
Copy link
Contributor

All of our chef runs are updating ACLs every single time because the acl values are arrays and they are compared without sorting

Example chef run output -

update acl environments/environment at environments/environment
15:08:34.045 create: update groups from ["admins", "prod", "clients", "our"] to ["our", "admins", "prod", "clients"]�
15:08:34.045 �read: update groups from ["clients", "admins", "users", "our"] to ["our", "clients", "admins", "users"]�
15:08:34.046 �update, delete, grant: update groups from ["admins", "our"] to ["our", "admins"]�

Solution: Make the comparision insensitive to order

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Does not work as expected.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants