diff --git a/ProxmoxAAS-Fabric b/ProxmoxAAS-Fabric index eac6822..1225439 160000 --- a/ProxmoxAAS-Fabric +++ b/ProxmoxAAS-Fabric @@ -1 +1 @@ -Subproject commit eac682236bc3e23b6d939920d9ef85cc42787240 +Subproject commit 1225439b4af49bbc2befff0363c5944556736ee6 diff --git a/app/routes/config.go b/app/routes/config.go index 6c02ac7..6c8ec33 100644 --- a/app/routes/config.go +++ b/app/routes/config.go @@ -16,16 +16,16 @@ import ( // imported types from fabric type InstanceConfig struct { - Type fabric.InstanceType `json:"type"` - Name string `json:"name"` - Proctype string `json:"cpu"` - Cores uint64 `json:"cores"` - Memory uint64 `json:"memory"` - Swap uint64 `json:"swap"` - Volumes map[string]*fabric.Volume `json:"volumes"` - Nets map[string]*fabric.Net `json:"nets"` - Devices map[string]*fabric.Device `json:"devices"` - Boot fabric.BootOrder `json:"boot"` + Type fabric.InstanceType `json:"type"` + Name string `json:"name"` + CPU string `json:"cpu"` + Cores uint64 `json:"cores"` + Memory uint64 `json:"memory"` + Swap uint64 `json:"swap"` + Volumes map[string]*fabric.Volume `json:"volumes"` + Nets map[string]*fabric.Net `json:"nets"` + Devices map[string]*fabric.Device `json:"devices"` + Boot fabric.BootOrder `json:"boot"` // overrides ProctypeSelect common.Select } @@ -67,7 +67,7 @@ func HandleGETConfig(c *gin.Context) { } } for i, cpu := range config.ProctypeSelect.Options { - if cpu.Value == config.Proctype { + if cpu.Value == config.CPU { config.ProctypeSelect.Options[i].Selected = true } }