Issue #5459
closedResponse data from CollectionVersionViewSet is incompatible with ansible-galaxy
Description
The ansible-galaxy bug is at https://github.com/ansible/ansible/issues/62076
The response from CollectionVersionViewSet (GET GET
/pulp/api/v3/content/ansible/collection_versions/ - https://pulp-ansible.readthedocs.io/en/latest/restapi.html#operation/content_ansible_collections_list)
has 'namespace' as a single string, where the ansible-galaxy client expect a dictionary.
Essentially, the 'namespace' value needs to be a dict with a 'name' key with the namespace string as value.
Current result (truncated for brevity)
{
# ...
"namespace": "alikins",
}
Exceptected
{
# ...
"namespace": {"name": "alikins"},
}
https://github.com/ansible/galaxy-api/compare/master...alikins:collection_version_detail_99_reopen is an example workaround in galaxy-api that adds the data.
Note that branch also adds some fields to the "metadata" item that is missing, though I don't believe that impacts ansible-galaxy. It does make the result more inline with the galaxy v2 result however.
Files
Updated by alikins over 5 years ago
Updated by alikins over 5 years ago
Updated by bmbouter over 5 years ago
- Status changed from NEW to POST
- Assignee set to alikins
PR available from @alikins here: https://github.com/pulp/pulp_ansible/pull/206
Added by alikins over 5 years ago
Added by bmbouter over 5 years ago
Updated by alikins over 5 years ago
- Status changed from POST to MODIFIED
Applied in changeset pulp_ansible|2d5f7a5a77ead4d9be0c1b7709c32af257adb094.
Updated by bmbouter over 5 years ago
Applied in changeset pulp_ansible|657283153297e4b563f605868409576d3ae9736b.
Updated by bmbouter about 4 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Return collection version namespace as a dict
https://pulp.plan.io/issues/5459 closes #5459