Adjust critical flag

This commit is contained in:
erthalion 2018-06-11 10:32:16 +02:00
parent 627bb51a0c
commit bd0cd62151
1 changed files with 5 additions and 1 deletions

View File

@ -125,9 +125,13 @@ func (c *Cluster) applyActions(actions []Action) (err error) {
}
for action := range uniqueActions {
if dontStop, err := action.process(); err != nil && !dontStop {
if critical, err := action.process(); err != nil {
c.logger.Errorf("Can't apply action %s: %v", action.name(), err)
}
if critical == true {
return err
}
}
}