Skip to content

Commit

Permalink
fix: prevent preview changes sync
Browse files Browse the repository at this point in the history
Signed-off-by: xiaowu.zhu <xiaowu.zhu@daocloud.io>
  • Loading branch information
yyzxw authored and xiaowu.zhu committed May 24, 2024
1 parent 97648ee commit 716672c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/argocd/commands/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -2099,6 +2099,8 @@ func NewApplicationSyncCommand(clientOpts *argocdclient.ClientOptions) *cobra.Co
}
} else {
fmt.Printf("====== No Differences found ======\n")
// if no differences found, then no need to sync
return
}
}
_, err = appIf.Sync(ctx, &syncReq)
Expand Down

0 comments on commit 716672c

Please sign in to comment.