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
Privileges order change on every apply #10
Labels
bug
Something isn't working
Comments
ghost
changed the title
Privileges order changes on every apply
Privileges order change on every apply
Mar 20, 2020
Hi @marek-budyn , i'll add sorting to the list. This should fix it. |
Thanks! this should help |
Nosmoht
added a commit
that referenced
this issue
Apr 16, 2020
akaRem
referenced
this issue
in akaRem/terraform-provider-nexus
Apr 19, 2020
kuzmacska
referenced
this issue
in akaRem/terraform-provider-nexus
Apr 19, 2020
akaRem
referenced
this issue
in akaRem/terraform-provider-nexus
Apr 19, 2020
akaRem
referenced
this issue
in akaRem/terraform-provider-nexus
Apr 19, 2020
Unfortunately latest release does the same. Still re-applying the same list of privileges. |
Not fixed for me. |
Hi all, this is fixed with. cea995d |
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When creating role and applying set or privileges (as list of strings), updating nexus works.
But validation (or re-applying the same terraform config) causes nexus to be updated every time, as list of privileges comes in different order.
Example output from terraform:
The privileges will be updated in place, but changes are irrelevant. Just an order.
But when one want to validate whether configuration is up to date (e.g. someone have not changed configuration manually), this will fail every time.
Possible solution would be to sort this list after fetching from nexus server, and sort it for validation/applying.
Similar issue might be with other list-related configurations, but I haven't check.
The text was updated successfully, but these errors were encountered: