Adjust critical flag

This commit is contained in:
erthalion
2018-06-13 14:43:31 +02:00
parent 627bb51a0c
commit bd0cd62151
+5 -1
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
}
}
}