-
Notifications
You must be signed in to change notification settings - Fork 49
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
azure_rm_virtualmachineextension always changed #326
Comments
@UnwashedMeme Thank you for reporting the pr. Do you mean we need to add the return value for azure_rm_virtualmahineextension module? |
@Fred-sun I edited the top description to try and be more clear. The issue is that it always reports changes even when nothing changes. I don't want it to print out the |
@UnwashedMeme I see, Thank for your info, As you said, there is no idempotent when use 'protected_settig |
@mybayern1974 Please help take a look this issue when you're free! There is no idempotent when create azure_rm_virtualmachineextension by 'protected_setting' attribute. Thank you very much! |
@haiyuazhang Could help take a look this issue? The Azure API doesn't return protected_settings when create virtualmachine extension. Thank you very much!
|
The API not giving the |
Thanks for your update, I see! |
@UnwashedMeme So there are two ways to solve this problem. |
|
@UnwashedMeme If we follow the first assumption, can we do this?Add a parameter force_update to force the update. Such as:
|
I've not done too much with writing ansible modules but i would suspect the parameter parsing will translate Aside from that maybe set the default value of |
@UnwashedMeme I see, Thanks for your info. |
@haiyuazhang Do you think so? If there is no problem, I will try to give a PR fix this problem. Thank you very much! |
@haiyuazhang It should not need to be changed, as it is designed to force updates when protected_settings is set. Could you please help confirm it? Thank you very much! |
Kindly ping! |
@haiyuazhang Would you pelase help take a look this issue when you're free? Thank you very much! |
@UnwashedMeme Thank you very much for your interest in Ansible. This repo is no longer maintained in this repository and has been migrated to https://github.com/ansible-collections/azure |
An
azure_rm_virtualmachineextension
always reports as changed even when nothing changes.I have used this module to make 3 extensions and 2 are always listed as having changes-- the two that use
protected_settings
. I noticed in the output it showsstate.protected_settings
is null even though I am setting that in my ansible config.To reproduce:
JsonADDomainExtension
to a windows VM, passing the password as aprotected_setting
e.g.
I'm guessing that the Azure API doesn't return
protected_settings
so when the code looks for a change (right about here) it is always different.The text was updated successfully, but these errors were encountered: