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

@@ -61,7 +61,7 @@ func (s *Server) UpdateDataStructure(data []byte) error {
s.EnvVars = src.EnvVars
}
if src.Allocations != nil && src.Allocations.Mappings != nil && len(src.Allocations.Mappings) > 0 {
if src.Allocations.Mappings != nil && len(src.Allocations.Mappings) > 0 {
s.Allocations.Mappings = src.Allocations.Mappings
}