bddvlpr opened a new pull request, #340:
URL: https://github.com/apache/cloudstack-terraform-provider/pull/340

   Fixes ordering and identity handling for `cloudstack_role_permission`s.
   
   Role perms are evaluated top to bottom so their order affects the resulting 
access policy. Previously refresh reconstructed managed permissions in 
Terraform's existing order instead of the order returned by CloudStack. This 
oob ordering changes and prevented Terraform from detecting and correcting the 
drift.
   
   Inserting or removing permissions could also shift computed IDs between list 
elements. Reconciliation could consequently delete and recreate valid 
permissions, or accidentally delete externally managed permissions when 
`authorative` is not turned on.
   
   Tests cover the detecting and correcting oob ordering changes, reordering 
lists containing two or more permissions, shifted ids after inserting or 
removing list items, preserving IDs for unchanged perms and producing an empty 
follow up plan after reconciliation.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to