Skip to content

Commit 05b30f2

Browse files
author
Vitaliy Zakaznikov
committed
Adding support for arm image arm64 and aarch64 architechture aliases.
1 parent e832967 commit 05b30f2

File tree

1 file changed

+5
-1
lines changed
  • testflows/github/hetzner/runners

1 file changed

+5
-1
lines changed

testflows/github/hetzner/runners/args.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,17 @@ def count_type(v):
101101

102102

103103
def image_type(v, separator=":"):
104-
"""Image type argument. Example: system:ubuntu-22.04"""
104+
"""Image type argument. Example: x86:system:ubuntu-22.04"""
105105
try:
106106
image_architecture, image_type, image_name = v.split(separator, 2)
107107
assert image_type in ("system", "snapshot", "backup", "app")
108108
except:
109109
raise ArgumentTypeError(f"invalid image {v}")
110110

111+
if image_architecture in ("aarch64", "arm64"):
112+
# support aarch64, arm64 alias for arm
113+
image_architecture = "arm"
114+
111115
if image_type in ("system", "app"):
112116
return Image(type=image_type, architecture=image_architecture, name=image_name)
113117
else:

0 commit comments

Comments
 (0)