Add clair auth header in generalized interface
This commit is contained in:
parent
836a99083e
commit
75f5df6369
1 changed files with 3 additions and 1 deletions
|
@ -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,
|
||||
|
|
Reference in a new issue