Correctly report success in .status on Update (#469)

This commit is contained in:
Maxim Ivanov 2019-01-31 12:09:17 +00:00 committed by Sergey Dudoladov
parent 90c25038d7
commit ed6acc1178
1 changed files with 1 additions and 1 deletions

View File

@ -494,7 +494,7 @@ func (c *Cluster) Update(oldSpec, newSpec *acidv1.Postgresql) error {
defer func() {
if updateFailed {
c.setStatus(acidv1.ClusterStatusUpdateFailed)
} else if c.Status != acidv1.ClusterStatusRunning {
} else {
c.setStatus(acidv1.ClusterStatusRunning)
}
}()