Make mounts not get overridden when a server is updated
This commit is contained in:
parent
662eb17241
commit
4483bfa2aa
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user