Skip to content

Commit

Permalink
Change URL for library item list in 7.0.3 spec (ansible-collections#464)
Browse files Browse the repository at this point in the history
Change URL for library item list in 7.0.3 spec

SUMMARY
When retrieving a list of items inside a content library, the URL was malformed due to a double key in the query. Spec 7.0.3 is changed to look like it did in 7.0.2.
Fixes ansible-collections#463
ISSUE TYPE


Bugfix Pull Request

COMPONENT NAME
content_library_item_info

Reviewed-by: GomathiselviS
Reviewed-by: Alina Buzachis
  • Loading branch information
ephracis authored Jan 24, 2024
1 parent f5d7fd2 commit b757870
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 3 additions & 0 deletions changelogs/fragments/463_fix_library_url.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
bugfixes:
- "content_library_item_info - fixed error with unsupported property"
2 changes: 1 addition & 1 deletion config/api_specifications/7.0.3/content.json
Original file line number Diff line number Diff line change
Expand Up @@ -1800,7 +1800,7 @@
]
}
},
"/api/content/library/item?library_id": {
"/api/content/library/item": {
"get": {
"tags": [
"library/item"
Expand Down
4 changes: 1 addition & 3 deletions plugins/modules/content_library_item_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,7 @@ def build_url(params):
)
_in_query_parameters = PAYLOAD_FORMAT["list"]["query"].keys()
return yarl.URL(
("https://{vcenter_hostname}" "/api/content/library/item?library_id").format(
**params
)
("https://{vcenter_hostname}" "/api/content/library/item").format(**params)
+ gen_args(params, _in_query_parameters),
encoded=True,
)
Expand Down

0 comments on commit b757870

Please sign in to comment.