-
Bug
-
Resolution: Done
-
Undefined
-
None
-
Unspecified
-
False
-
-
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.
- relates to
-
ACA-1934 Migrate vmware.vmware_rest.content_library_item_info
- Closed