Project

Profile

Help

Issue #5247

closed

An incorrect example of a distribution creation

Added by lmjachky over 5 years ago. Updated about 4 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
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.

Also available in: Atom PDF