Skip to content

Commit 1ae5273

Browse files
Update architecture.py
1 parent a8f06fe commit 1ae5273

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/architecture.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,10 @@ def is_wrong_architecture() -> bool:
5151
manifest_archs.extend(base_archs)
5252

5353
hardware_arch = platform.machine()
54-
if ("amd64" in manifest_archs and hardware_arch == "x86_64") or (
55-
"arm64" in manifest_archs and hardware_arch == "aarch64"
54+
if (
55+
("amd64" in manifest_archs and hardware_arch == "x86_64")
56+
or ("arm64" in manifest_archs and hardware_arch == "aarch64")
57+
or ("s390x" in manifest_archs and hardware_arch == "s390x")
5658
):
5759
logger.debug("Charm architecture matches")
5860
return False

0 commit comments

Comments
 (0)