Fixing issue on changing "disk_mode" #2096#2271
Fixing issue on changing "disk_mode" #2096#2271alezzandro wants to merge 2 commits intoansible-collections:mainfrom
Conversation
|
Build failed. ❌ ansible-tox-linters FAILURE in 4m 40s |
|
Build failed. ✔️ ansible-tox-linters SUCCESS in 4m 42s |
|
I'm sorry, I didn't find much time to work on this collection during the last weeks. I hope I'm able to review this PR soon. |
|
@mariolenz any news? |
|
Could you please add a changelog fragment? It would be great to have a test case for this. Maybe we can re-use a disk that's created here: Something like after this test maybe? That would be line 111. |
Fixes #2096
SUMMARY
Fixing issue on changing "disk_mode" #2096.
As reported in the issue trying to change the disk_mode on an existing vm disk. If the disk is "independent_persistent" and I want to change it to "persistent" no change will be made. Other combinations also won't work.
I edited the vmware_guest_disk.py for including the disk_mode change in the VM reconfiguration if the disk_mode parameter is changing from the existing one.
ISSUE TYPE
COMPONENT NAME
community.vmware.vmware_guest_disk
ADDITIONAL INFORMATION
Please note I've just made a small change that still requires you to pass to the module at least the following information: