Issue #1452
closed_href missing from iso distributors
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.
Updated by Ichimonji10 almost 8 years ago
According to Jenkins, this issue also affects the master branch. According to my own test systems (spun up using Vagrant), this issue only affects 2.7.
Updated by rbarlow almost 8 years ago
- Project changed from Pulp to RPM Support
- Category deleted (
14)
Updated by mhrivnak almost 8 years ago
- Severity changed from 2. Medium to 1. Low
- Triaged changed from No to Yes
Updated by bmbouter over 4 years ago
- Status changed from NEW to CLOSED - WONTFIX
Pulp 2 is approaching maintenance mode, and this Pulp 2 ticket is not being actively worked on. As such, it is being closed as WONTFIX. Pulp 2 is still accepting contributions though, so if you want to contribute a fix for this ticket, please reopen or comment on it. If you don't have permissions to reopen this ticket, or you want to discuss an issue, please reach out via the developer mailing list.