Actions
Issue #5247
closedAn incorrect example of a distribution creation
Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Documentation
Sprint:
Sprint 84
Quarter:
Description
In the documentation https://docs.pulpproject.org/en/3.0/nightly/workflows/exposing-content.html#auto-distribution-of-a-repository, there is an example that shows a way of creating a distribution out of a repository. However, the example is not correct.
When I execute the following call:
http POST :24817/pulp/api/v3/distributions/file/file/ name='baz' base_path='mypath' repository=$REPO_HREF``
I get this response:
{
"repository": [
"Unexpected field"
]
}
It is possible that instead of /distributions/file/file there should be used /distribution/ for docker or ansible.
Actions
Updated examples of auto-distribution.
closes #5247 https://pulp.plan.io/issues/5247