Issue #3232
Updated by mihai.ibanescu@gmail.com over 6 years ago
It is helpful to know the unit_key data for the manifest that was uploaded in order to facilitate further processing. Typically, in an automated workflow, a docker image upload is immediately followed by an image tag, and the digest is needed in that case. The importer's upload_unit does not return any information about what got uploaded: <pre> return {'success_flag': True, 'summary': '', 'details': {}} </pre> The Debian and Windows plugins do this: <pre> unit = unit.save_and_associate(file_path, repo) return dict(success_flag=True, summary="", details=dict( unit=dict(unit_key=unit.unit_key, metadata=unit.all_properties))) </pre> which seems more useful. A somewhat similar I could swear I copied this pattern exists in from one of the core's unit_association.py, where information about units that were successfully associated is present under upstream plugins, but pulp_rpm and pulp_python have the task's ["details"]["units_successful"] same problem of returning nothing useful.