Skip to content

Commit

Permalink
版本比较问题
Browse files Browse the repository at this point in the history
  • Loading branch information
shaohq committed Mar 27, 2022
1 parent c22a963 commit fe64ca1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server/api/cluster/operation/common_processing_inventory.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,11 @@ func updateResourcePackageVarsToInventory(req OperationCommonRequest) (map[strin
version := map[string]string{}
json.Unmarshal(versionJson, &version)

common.MapSet(inventory, "all.vars.kuboardspray_version", version["version"])
v := version["version"]
v = strings.TrimSuffix(v, "-amd64")
v = strings.TrimSuffix(v, "-arm64")

common.MapSet(inventory, "all.vars.kuboardspray_version", v)

common.MapSet(inventory, "all.vars.download_keep_remote_cache", false)
common.MapSet(inventory, "all.vars.download_run_once", true)
Expand Down

0 comments on commit fe64ca1

Please sign in to comment.