agent: maintenance mode is persistent

pull/606/head
Ryan Uber 2015-01-15 10:25:22 -08:00
parent 1f749ce3f2
commit 8819d71f99
1 changed files with 2 additions and 2 deletions

View File

@ -1031,7 +1031,7 @@ func (a *Agent) EnableServiceMaintenance(serviceID string) error {
ServiceName: service.Service,
Status: structs.HealthCritical,
}
a.state.AddCheck(check)
a.AddCheck(check, nil, true)
return nil
}
@ -1061,7 +1061,7 @@ func (a *Agent) DisableServiceMaintenance(serviceID string) error {
DEREGISTER:
// Deregister the maintenance check
a.state.RemoveCheck(maintCheckID)
a.RemoveCheck(maintCheckID, true)
return nil
}