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

This commit is contained in:
Maxim Ivanov
2019-01-31 13:09:17 +01:00
committed by Sergey Dudoladov
parent 90c25038d7
commit ed6acc1178
+1 -1
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)
}
}()