Fix app sync / wait panic in CLI

This commit is contained in:
Jesse Suen 2018-09-12 00:59:20 -07:00 committed by Jesse Suen
parent 47ee26a77a
commit 32e96e4bb2
2 changed files with 8 additions and 5 deletions

View file

@ -17,8 +17,9 @@
- Fix controller hot loop when app source contains bad manifests (issue #568)
- [UI] Fix issue where projects filter does not work when application got changed
## v0.8.2 (2018-09-11)
## v0.8.2 (2018-09-12)
- Downgrade ksonnet from v0.12.0 to v0.11.0 due to quote unescape regression
- Fix CLI panic when performing an initial `argocd sync/wait`
## v0.8.1 (2018-09-10)
+ [UI] Support selection of helm values files in App creation wizard (issue #499)

View file

@ -955,10 +955,12 @@ func calculateResourceStates(app *argoappv1.Application) map[string]*resourceSta
}
var opResult *argoappv1.SyncOperationResult
if app.Status.OperationState.SyncResult != nil {
opResult = app.Status.OperationState.SyncResult
} else if app.Status.OperationState.RollbackResult != nil {
opResult = app.Status.OperationState.SyncResult
if app.Status.OperationState != nil {
if app.Status.OperationState.SyncResult != nil {
opResult = app.Status.OperationState.SyncResult
} else if app.Status.OperationState.RollbackResult != nil {
opResult = app.Status.OperationState.SyncResult
}
}
if opResult == nil {
return resStates