mirror of
https://github.com/argoproj/argo-cd
synced 2026-05-24 09:50:08 +00:00
This commit is contained in:
parent
4d494f3a1b
commit
ac7906fdea
1 changed files with 3 additions and 0 deletions
|
|
@ -1483,6 +1483,9 @@ const printOpFmtStr = "%-20s%s\n"
|
||||||
const defaultCheckTimeoutSeconds = 0
|
const defaultCheckTimeoutSeconds = 0
|
||||||
|
|
||||||
func printOperationResult(opState *argoappv1.OperationState) {
|
func printOperationResult(opState *argoappv1.OperationState) {
|
||||||
|
if opState == nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
if opState.SyncResult != nil {
|
if opState.SyncResult != nil {
|
||||||
fmt.Printf(printOpFmtStr, "Operation:", "Sync")
|
fmt.Printf(printOpFmtStr, "Operation:", "Sync")
|
||||||
fmt.Printf(printOpFmtStr, "Sync Revision:", opState.SyncResult.Revision)
|
fmt.Printf(printOpFmtStr, "Sync Revision:", opState.SyncResult.Revision)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue