You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the specific case of providers, it crossed my mind that sorting by alias could be appropriate. But maybe DuplicateKey is used in other situations where there isn't a good field to sort on?
Thanks for the awesome software! Something I ran into while trying to automate managing user accounts across providers:
test.py
:It seems like this is because of how the comparison dunder methods in
terraformpy.objects.DuplicateKey
use the hash:terraformpy/src/terraformpy/objects.py
Lines 66 to 87 in a15ee95
In the specific case of providers, it crossed my mind that sorting by alias could be appropriate. But maybe
DuplicateKey
is used in other situations where there isn't a good field to sort on?In looking into the Terraform/duplicate key JSON side of the issue, I learned that a JSON array of objects is also accepted.
So here's my current workaround (which relies on the Python 3.7+ dictionary insertion order guarantee):
The text was updated successfully, but these errors were encountered: