-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
content_library_item_info fails when you only specify library_id #540
Comments
@mariolenz @bardielle Id like your opinions on this please |
I just spend a good hour trying to figure this problem out. after I figure out the code change I then found this issue.. I have been getting to following error "Unsupported property with name: library_id?library_id." I was able to verify that modifying the code to
Allowed me to pull all content library items. I have not validated if this had any impact else where. |
Here is an output of the logging before and after the change. GET: https://vcenter.fqdn/api/content/library/item?library_id?library_id=53c70953-2ec5-4a3a-9ec2-bd7c490c7a6f GET: https://vcenter.fqdn/api/content/library/item?library_id=53c70953-2ec5-4a3a-9ec2-bd7c490c7a6f |
Hey @asulliv1 , just an FYI, due to the nature of this repo we are deprecating this module and recommending that people use the Related PR #551 |
Since the module has been moved to vmware.vmware and deprecated in this collection, I don't think we'll work on this issue anymore. Please try if content_library_item_info works for you. If not, I suggest to open an issue in vmware.vmware. |
Summary
The content_library_item_info module fails when a user specifies just the library_id. This triggers the 'list' method, which has an incorrect API url. Heres the relevant lines: https://github.com/ansible-collections/vmware.vmware_rest/blob/main/plugins/modules/content_library_item_info.py#L292-L298
As far as I can tell, the module generation is working as expected. Heres the VMware source docs:
https://developer.broadcom.com/xapis/vsphere-automation-api/latest/content/api/content/library/item__library_id/get/
It currently is:
It should be:
Obviously the quick fix is a simple change. However, since the module will just be re-generated with the incorrect URL I'd like to discuss how best to fix this long term.
We could migrate the module functionality to vmware.vmware, but whats the best way to communicate this to users in this collection? Would we be able to deprecate this module with a minor release, and then remove it with a major release down the line? Is that the best course of action?
Issue Type
Feature Idea
Component Name
content_library_item_info
Additional Information
Code of Conduct
The text was updated successfully, but these errors were encountered: