Merge pull request #2697 from coreos-inc/appr_blob_pull

Appr: fix pull blob (missing param)
This commit is contained in:
Antoine Legrand 2017-06-13 16:28:00 +02:00 committed by GitHub
commit 817d75d6dc

View file

@ -158,7 +158,8 @@ def pull(namespace, package_name, release, media_type):
data = cnr_registry.pull(reponame, release, media_type, Package, blob_class=Blob)
model.log_action('pull_repo', namespace, repo_name=package_name,
metadata={'release': release, 'mediatype': media_type})
return _pull(data)
json_format = request.args.get('format', None) == 'json'
return _pull(data, json_format)
@appr_bp.route("/api/v1/packages/<string:namespace>/<string:package_name>", methods=['POST'],