Hi Nathanaël,

On 5/28/19 5:21 PM, Nathanaël Blanchet wrote:

Hello,

Considering:

https://bugzilla.redhat.com/show_bug.cgi?id=1653743 and https://github.com/ansible/ansible/issues/30624

I installed latest 4.3 sdk and ansible 2.8 but I still can't get the name of the href link doing this:

- name: disk facts
ovirt_disk_facts:
auth: "{{ ovirt_auth }}"
fetch_nested: true

it still gives:

            "storage_domains": [
                {
                    "href": "/ovirt-engine/api/storagedomains/0dc2941a-bdc2-4ce4-8ad7-43fa9c944f88",
                    "id": "0dc2941a-bdc2-4ce4-8ad7-43fa9c944f88"
                }
If I understand, I should get the storage_domain name instead of its id, shouldn't I?


The change seems to not work perfectly.

When I run playbook with

        fetch_nested: True
        nested_attributes:
          - name

I get

            "quota": {
                "href": "/ovirt-engine/api/datacenters/87bc2e30-f3b1-11e8-aa7d-001a4a013f36/quotas/96f2a2e4-f3b1-11e8-82b6-001a4a013f36",
                "id": "96f2a2e4-f3b1-11e8-82b6-001a4a013f36",
                "name": "Default"
            },
            "disk_profile": {
                "href": "/ovirt-engine/api/storagedomains/82ceb4c9-e844-4fc7-b0ff-559052e6301f/diskprofiles/30cc8a74-4b99-4aab-8193-28826bbecbb9",
                "id": "30cc8a74-4b99-4aab-8193-28826bbecbb9",
                "name": "ll-03s1-43-3"
            },

So for direct link
<quota href="/ovirt-engine/api/datacenters/87bc2e30-f3b1-11e8-aa7d-001a4a013f36/quotas/96f2a2e4-f3b1-11e8-82b6-001a4a013f36" id="96f2a2e4-f3b1-11e8-82b6-001a4a013f36"/>

it works fine. But storage domains are different, it is a list of links.

        <storage_domains>
            <storage_domain href="/ovirt-engine/api/storagedomains/82ceb4c9-e844-4fc7-b0ff-559052e6301f" id="82ceb4c9-e844-4fc7-b0ff-559052e6301f"/>
        </storage_domains>


I'll check it with developer and update by verifying the BZ.

Thanks for catching that issue.

-- 
Nathanaël Blanchet

Supervision réseau
Pôle Infrastrutures Informatiques
227 avenue Professeur-Jean-Louis-Viala
34193 MONTPELLIER CEDEX 5 	
Tél. 33 (0)4 67 54 84 55
Fax  33 (0)4 67 54 84 14
blanchet@abes.fr 

_______________________________________________
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-leave@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/
List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/L4ZHNR6YWLBQHGFH6WO7FDMQSP7NGTA4/
Best regards,
-- 
Lucie Leistnerova
Senior Quality Engineer, QE Cloud, RHVM
Red Hat EMEA

IRC: lleistne @ #rhev-qe