mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
delete_old_oci_images: Add manifest list to the Accept header
Signed-off-by: Clement Verna <cverna@tutanota.com>
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user