Browse Source

agent: pass error through when writing state files

pull/497/head
Ryan Uber 10 years ago
parent
commit
2ebe85414f
  1. 4
      command/agent/agent.go

4
command/agent/agent.go

@ -645,7 +645,9 @@ func (a *Agent) AddService(service *structs.NodeService, chkType *CheckType) err
a.state.AddService(service) a.state.AddService(service)
// Persist the service to a file // Persist the service to a file
a.persistService(service) if err := a.persistService(service); err != nil {
return err
}
// Create an associated health check // Create an associated health check
if chkType != nil { if chkType != nil {

Loading…
Cancel
Save