From 98f48a4188fe15448e238437e601c3ebdd96eb78 Mon Sep 17 00:00:00 2001 From: Clement Verna Date: Tue, 4 Jun 2019 13:25:01 +0200 Subject: [PATCH] delete_old_oci_images: Add manifest list to the Accept header Signed-off-by: Clement Verna --- library/delete_old_oci_images.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/library/delete_old_oci_images.py b/library/delete_old_oci_images.py index 0924684aea..74ebb08ef1 100644 --- a/library/delete_old_oci_images.py +++ b/library/delete_old_oci_images.py @@ -72,7 +72,10 @@ def main(): import requests headers = { - "Accept": "application/vnd.docker.distribution.manifest.v2+json, application/vnd.oci.image.index.v1+json, application/vnd.oci.image.manifest.v1+json" + "Accept": "application/vnd.docker.distribution.manifest.v2+json,"\ + "application/vnd.oci.image.index.v1+json,"\ + "application/vnd.oci.image.manifest.v1+json,"\ + "application/vnd.docker.distribution.manifest.list.v2+json"\ } except ImportError: module.fail_json(msg="the requests python module not found on the target system")