Project

Profile

Help

Issue #1452

closed

_href missing from iso distributors

Added by Ichimonji10 about 7 years ago. Updated almost 4 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
1. Low
Version:
2.7.0
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

It's possible to get information about the distributors associated with a repository by issuing either of the following:

GET https://pulp.example.com/pulp/api/v2/repositories/…/?distributors=true
GET https://pulp.example.com/pulp/api/v2/repositories/…/?details=true

The response body will have a "distributors" attribute, where the attribute is a list of dicts. Unfortunately, the distributors are all missing their `_href` attribute. For example:

>>> import requests
>>> response = requests.get(
...     'https://pulp.example.com/pulp/api/v2/repositories/…/distributors=true',
...     '…'
... )
>>> response.raise_for_status()
>>> response.json()['distributors']

[
    {
        u'_id': {u'$oid': u'56786442e779894f7829a5b0'},
        u'_ns': u'repo_distributors',
        u'auto_publish': True,
        u'config': {},
        u'distributor_type_id': u'iso_distributor',
        u'id': u'iso_distributor',
        u'last_publish': None,
        u'repo_id': u'2c2770dd-3f5a-4bc5-9fae-c37ef873e30f',
        u'scheduled_publishes': []
    }
]

This issue applies to ISO distributors on Pulp 2.7.

Also available in: Atom PDF