Skip to content

Commit 49b2111

Browse files
Update architecture.py
1 parent 60c248e commit 49b2111

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/charms/mysql/v0/architecture.py

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

8383
hardware_arch = platform.machine()
84-
if ("amd64" in manifest_archs and hardware_arch == "x86_64") or (
85-
"arm64" in manifest_archs and hardware_arch == "aarch64"
84+
if (
85+
("amd64" in manifest_archs and hardware_arch == "x86_64")
86+
or ("arm64" in manifest_archs and hardware_arch == "aarch64")
87+
or ("s390x" in manifest_archs and hardware_arch == "s390x")
8688
):
8789
logger.debug("Charm architecture matches")
8890
return False

0 commit comments

Comments
 (0)