From 8aeca3a8b9590cc890d888d11bb294bff2fe2e17 Mon Sep 17 00:00:00 2001 From: Grzegorz Placzek Date: Mon, 25 Nov 2024 12:45:30 +0100 Subject: [PATCH] [#68803] Add arch parameter to lexer_wrapper --- dockersave/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dockersave/__init__.py b/dockersave/__init__.py index f6b1e2b..8daa3ba 100644 --- a/dockersave/__init__.py +++ b/dockersave/__init__.py @@ -75,7 +75,7 @@ def get_manifest(image, tag, token, registry_url, arch="amd64"): request_url, headers={ 'Authorization':'Bearer {}'.format(token), - 'Accept': ", ".join(supported_manifests+supported_fat_manifests) + 'Accept': ", ".join(supported_fat_manifests+supported_manifests) } ) @@ -172,9 +172,9 @@ def lexer(string, secure=True): return tokens -def lexer_wrapper(string, user=None, password=None, secure=True): +def lexer_wrapper(string, user=None, password=None, secure=True, arch="amd64"): l = lexer(string) - img = Image(l['image'], l['tag'], registry_url=l['registry_url'], user=user, password=password) + img = Image(l['image'], l['tag'], registry_url=l['registry_url'], user=user, password=password, arch=arch) return img class Image: