Skip to content

Commit

Permalink
[#68803] Add arch parameter to lexer_wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
GPlaczek committed Dec 2, 2024
1 parent 4a6a088 commit 8aeca3a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dockersave/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
)

Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 8aeca3a

Please sign in to comment.