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

fix azure_rm_keyvault idempotency #295

Merged

Conversation

Eugen1987
Copy link
Contributor

SUMMARY

The part where the idempotence is checked is not working properly, there are several cases:

  1. The 'enabled_soft_delete' attribute has never existed. The correct one is: 'enable_soft_delete

  2. The attributes: tenant_id, enabled_for_deployment, enabled_for_disk_encryption, enabled_for_template_deployment, enable_soft_delete are inside the 'properties' dictionary and not at the same level.

  3. The attribute 'create_mode' is not part of the idempotence since the only thing it does is to recover the keyvault with the data it had before in case the option 'recover_mode' is 'true'. It also does not come in the structure: old_response['create_mode']

Fixes #292

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

azure_rm_keyvault

ADDITIONAL INFORMATION

None

@Fred-sun Fred-sun added medium_priority Medium priority work in In trying to solve, or in working with contributors labels Oct 15, 2020
plugins/modules/azure_rm_keyvault.py Outdated Show resolved Hide resolved
plugins/modules/azure_rm_keyvault.py Outdated Show resolved Hide resolved
@Fred-sun Fred-sun added ready_for_review The PR has been modified and can be reviewed and merged and removed work in In trying to solve, or in working with contributors labels Oct 23, 2020
@haiyuazhang haiyuazhang merged commit cf97a28 into ansible-collections:dev Oct 26, 2020
@Eugen1987 Eugen1987 deleted the bug/fix-keyvault-idempotency branch October 26, 2020 07:55
@Eugen1987
Copy link
Contributor Author

Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
medium_priority Medium priority ready_for_review The PR has been modified and can be reviewed and merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

azure_rm_keyvault module does not update correctly all attributes
3 participants