Uploaded image for project: 'Ansible Cloud Automation'
  1. Ansible Cloud Automation
  2. ACA-2006

vmware.vmware.content_library_item_info module search for library_item_id regardless of the library_name or library_id

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • Moderate

      Description:

      vmware.vmware.content_library_item_info module search for `library_item_id`  regardless of the `library_name` or `library_id`

       

      Steps to reproduce:

          - name: Gather Library Info
            vmware.vmware.content_library_item_info:
              validate_certs: false
              hostname: "{{ vcenter_hostname }}"
              username: "{{ vcenter_username }}"
              password: "{{ vcenter_password }}"
              port: "{{ vcenter_port }}"
              library_id: "0d4ac97a-408b-496c-ae4d-e1fad62ee212"
              library_item_id: "dd8ab529-65da-4b59-a6b6-7ec4f7055ccb"
            register: __res

      Actual result:

          "__res": {
              "ansible_facts": {
                  "discovered_interpreter_python": "/usr/bin/python3"
              },
              "changed": false,
              "failed": false,
              "library_item_info": [
                  {
                      "cached": true,
                      "certificate_verification_info": {
                          "status": "INTERNAL"
                      },
                      "content_version": "2",
                      "creation_time": "2024-10-10T07:30:35.639Z",
                      "id": "dd8ab529-65da-4b59-a6b6-7ec4f7055ccb",
                      "last_modified_time": "2024-10-10T07:42:17.581Z",
                      "library_id": "d203cf4b-1c52-4b5f-bfa2-a8b1f2580c55",
                      "metadata_version": "1",
                      "name": "mtv-bootstrap-template",
                      "security_compliance": true,
                      "size": 16074030662,
                      "type": "ovf",
                      "version": "1"
                  }
              ]
          }
      

      As you can see from the result, `library_id` is different.

       

      Expected result:

      No `library_item_info`, because the specified library doesn't contain the specified item.
       

              rh-ee-mimorenc Mike Morency
              annsavina Anna Savina Frances
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: