delete_old_oci_images: Add manifest list to the Accept header

Signed-off-by: Clement Verna <cverna@tutanota.com>
This commit is contained in:
Clement Verna 2019-06-04 13:25:01 +02:00
parent 9ec1b2190b
commit 98f48a4188
1 changed files with 4 additions and 1 deletions

View File

@ -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")