Skip to content

Commit fe64ca1

Browse files
committed
版本比较问题
1 parent c22a963 commit fe64ca1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

server/api/cluster/operation/common_processing_inventory.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,11 @@ func updateResourcePackageVarsToInventory(req OperationCommonRequest) (map[strin
154154
version := map[string]string{}
155155
json.Unmarshal(versionJson, &version)
156156

157-
common.MapSet(inventory, "all.vars.kuboardspray_version", version["version"])
157+
v := version["version"]
158+
v = strings.TrimSuffix(v, "-amd64")
159+
v = strings.TrimSuffix(v, "-arm64")
160+
161+
common.MapSet(inventory, "all.vars.kuboardspray_version", v)
158162

159163
common.MapSet(inventory, "all.vars.download_keep_remote_cache", false)
160164
common.MapSet(inventory, "all.vars.download_run_once", true)

0 commit comments

Comments
 (0)