From 75f5df6369ef9e9851d19830b05d8ab461004ea2 Mon Sep 17 00:00:00 2001 From: Jake Moshenko Date: Thu, 5 May 2016 13:28:06 -0400 Subject: [PATCH] Add clair auth header in generalized interface --- util/secscan/api.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/util/secscan/api.py b/util/secscan/api.py index a06c346b9..c4b56e0ad 100644 --- a/util/secscan/api.py +++ b/util/secscan/api.py @@ -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,