fix: Add architectural judgment for node creation upgrade (#8502)

This commit is contained in:
ssongliu
2025-04-28 18:45:48 +08:00
committed by GitHub
parent d6fde84dc9
commit 48dc8dcebf
11 changed files with 24 additions and 4 deletions

View File

@@ -121,6 +121,9 @@ func LoadArch() (string, error) {
if err != nil {
return "", fmt.Errorf("std: %s, err: %s", std, err.Error())
}
return LoadArchWithStdout(std)
}
func LoadArchWithStdout(std string) (string, error) {
if strings.Contains(std, "x86_64") {
return "amd64", nil
}