Hi Gianluca,

this looks like an issue in the module. 
I have created PR which should fix the problem [1].
Please check it out. You can manually create an ansible library to which 
you would copy the module and add the fix there or wait till it is added to ansible 2.9.

Further issues/requests recommend to create on the repo.

[1] https://github.com/oVirt/ovirt-ansible-collection/pull/61

Martin Necas

On Mon, Jun 15, 2020 at 11:57 PM Gianluca Cecchi <gianluca.cecchi@gmail.com> wrote:
On Mon, Jun 15, 2020 at 11:47 PM Gianluca Cecchi <gianluca.cecchi@gmail.com> wrote:

          register: disk_attach_info

But going to see registered variable it contains "active: true":

    "disk_activate_info": {
        "changed": false,
        "id": "6f7cdf02-cf8b-4fa8-ac00-6b47f6e0c827",
        "diskattachment": {
            "href": "/ovirt-engine/api/vms/b5c67c93-bd5d-42b6-a873-05f69cece2f1/diskattachments/6f7cdf02-cf8b-4fa8-ac00-6b47f6e0c827",
            "id": "6f7cdf02-cf8b-4fa8-ac00-6b47f6e0c827",
            "active": true,
            "bootable": false,
            "disk": {
....


Unfortunately I copied two times the disk_activate_info registered value in the previous e-mail.
Here below the correct disk_attach_info var contents that contains "active: true":

    "disk_attach_info": {
        "changed": true,
        "id": "6f7cdf02-cf8b-4fa8-ac00-6b47f6e0c827",
        "diskattachment": {
            "href": "/ovirt-engine/api/vms/b5c67c93-bd5d-42b6-a873-05f69cece2f1/diskattachments/6f7cdf02-cf8b-4fa8-ac00-6b47f6e0c827",
            "id": "6f7cdf02-cf8b-4fa8-ac00-6b47f6e0c827",
            "active": true,
            "bootable": false,
            "disk": {
                "href": "/ovirt-engine/api/disks/6f7cdf02-cf8b-4fa8-ac00-6b47f6e0c827",
                "id": "6f7cdf02-cf8b-4fa8-ac00-6b47f6e0c827"
            },
...

Gianluca
_______________________________________________
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-leave@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/
List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/ANQCN5GFPSWJG36LH7PJJU3BU477HBPM/