summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClement Verna <cverna@tutanota.com>2019-06-04 13:25:01 +0200
committerClement Verna <cverna@tutanota.com>2019-06-04 13:25:01 +0200
commit98f48a4188fe15448e238437e601c3ebdd96eb78 (patch)
tree143ee845bf238c1c4e5cabf8a9a334dfb2f617d3
parent9ec1b2190b8d552cb7f8add6880648516fd70256 (diff)
downloadansible-98f48a4188fe15448e238437e601c3ebdd96eb78.zip
ansible-98f48a4188fe15448e238437e601c3ebdd96eb78.tar.gz
ansible-98f48a4188fe15448e238437e601c3ebdd96eb78.tar.xz
delete_old_oci_images: Add manifest list to the Accept header
Signed-off-by: Clement Verna <cverna@tutanota.com>
-rw-r--r--library/delete_old_oci_images.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/library/delete_old_oci_images.py b/library/delete_old_oci_images.py
index 0924684..74ebb08 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")