fix bug in CPU type selector
This commit is contained in:
Submodule ProxmoxAAS-Fabric updated: eac682236b...1225439b4a
@@ -18,7 +18,7 @@ import (
|
|||||||
type InstanceConfig struct {
|
type InstanceConfig struct {
|
||||||
Type fabric.InstanceType `json:"type"`
|
Type fabric.InstanceType `json:"type"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Proctype string `json:"cpu"`
|
CPU string `json:"cpu"`
|
||||||
Cores uint64 `json:"cores"`
|
Cores uint64 `json:"cores"`
|
||||||
Memory uint64 `json:"memory"`
|
Memory uint64 `json:"memory"`
|
||||||
Swap uint64 `json:"swap"`
|
Swap uint64 `json:"swap"`
|
||||||
@@ -67,7 +67,7 @@ func HandleGETConfig(c *gin.Context) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
for i, cpu := range config.ProctypeSelect.Options {
|
for i, cpu := range config.ProctypeSelect.Options {
|
||||||
if cpu.Value == config.Proctype {
|
if cpu.Value == config.CPU {
|
||||||
config.ProctypeSelect.Options[i].Selected = true
|
config.ProctypeSelect.Options[i].Selected = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user