Fix issues instantiating the server struct

This commit is contained in:
Dane Everitt
2019-11-30 16:37:11 -08:00
parent bdf546c47a
commit be14811eb4
5 changed files with 18 additions and 15 deletions

View File

@@ -32,14 +32,14 @@ func New(data []byte) (*Installer, error) {
State: server.ProcessOfflineState,
Invocation: "",
EnvVars: make(map[string]string),
Build: &server.BuildSettings{
Build: server.BuildSettings{
MemoryLimit: getInt(data, "build", "memory"),
Swap: getInt(data, "build", "swap"),
IoWeight: uint16(getInt(data, "build", "io")),
CpuLimit: getInt(data, "build", "cpu"),
DiskSpace: getInt(data, "build", "disk"),
},
Allocations: &server.Allocations{
Allocations: server.Allocations{
Mappings: make(map[string][]int),
},
}