Make mounts not get overridden when a server is updated
This commit is contained in:
@@ -64,6 +64,10 @@ func (s *Server) UpdateDataStructure(data []byte, background bool) error {
|
|||||||
s.Allocations.Mappings = src.Allocations.Mappings
|
s.Allocations.Mappings = src.Allocations.Mappings
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if src.Mounts != nil && len(src.Mounts) > 0 {
|
||||||
|
s.Mounts = src.Mounts
|
||||||
|
}
|
||||||
|
|
||||||
if background {
|
if background {
|
||||||
s.runBackgroundActions()
|
s.runBackgroundActions()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user