File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -28,19 +28,25 @@ def is_redhat() -> bool:
28
28
return "rhel" in load_file ("/etc/os-release" , "" )
29
29
30
30
31
- def get_arch () -> str :
31
+ def standardized_arch ( arch : str ) :
32
32
"""
33
- Returns the current machine architecture
34
- :return: "amd64" when x86_64, "arm64" if aarch64, platform.machine() otherwise
33
+ Returns LocalStack standardised machine architecture name.
35
34
"""
36
- arch = platform .machine ()
37
35
if arch == "x86_64" :
38
36
return "amd64"
39
37
if arch == "aarch64" :
40
38
return "arm64"
41
39
return arch
42
40
43
41
42
+ def get_arch () -> str :
43
+ """
44
+ Returns the current machine architecture.
45
+ """
46
+ arch = platform .machine ()
47
+ return standardized_arch (arch )
48
+
49
+
44
50
def get_os () -> str :
45
51
if is_mac_os ():
46
52
return "osx"
You can’t perform that action at this time.
0 commit comments