Merge pull request #1440 from jakedt/headerers

Add clair auth header in generalized interface
This commit is contained in:
Jake Moshenko 2016-05-05 13:45:57 -04:00
commit 092da42e34

View file

@ -108,7 +108,9 @@ class SecurityScannerAPI(object):
}
if auth_header is not None:
layer_request['Authorization'] = auth_header
layer_request['Headers'] = {
'Authorization': auth_header,
}
if image.parent.docker_image_id and image.parent.storage.uuid:
layer_request['ParentName'] = '%s.%s' % (image.parent.docker_image_id,