Project

Profile

Help

Issue #2007

closed

Errata install API should expect 'id' as part of unit key

Added by dkliban@redhat.com about 8 years ago. Updated about 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
High
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
3. High
Version:
Platform Release:
2.8.5
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

Pulp agent running on a consumer currently expects to receive 'errata_id' in the unit dictionary. Pulp API users submit an 'id' instead. As result, when integrating with Katello, the consumer fails to install errata with following error:

Traceback (most recent call last):
   File "/usr/lib/python2.6/site-packages/pulp/agent/lib/dispatcher.py", line 76, in install
     report = handler.install(conduit, units, dict(options))
   File "/usr/lib/python2.6/site-packages/pulp_rpm/handlers/rpm.py", line 276, in install
     advisories = [unit_key['errata_id'] for unit_key in units]
 KeyError: 'errata_id'

Also available in: Atom PDF