TerryHowe / ansible-modules-hashivault

Ansible module for Hashicorp Vault.
https://pypi.python.org/pypi/ansible-modules-hashivault
MIT License
454 stars 158 forks source link

Fix state comparison of lists #402

Closed jarnoan closed 2 years ago

jarnoan commented 2 years ago

Fixes #401

I'm no python expert but here's my guess on a fix.

TerryHowe commented 2 years ago

ignore the docs problem, but could you add a test in here to validate this https://github.com/TerryHowe/ansible-modules-hashivault/blob/main/functional/test_write.yml should just need write a list and write it again and validate it doesn't show up as changed the second time. You could hardcode the list. Thanks!

jarnoan commented 2 years ago

Thanks, I added a couple of tests.

TerryHowe commented 2 years ago

Thanks!