Skip to content

Commit 9a8f3cd

Browse files
remove unwanted updating of source-position in app set command (#18887)
Signed-off-by: ishitasequeira <[email protected]>
1 parent 12b626b commit 9a8f3cd

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

cmd/argocd/commands/app.go

-2
Original file line numberDiff line numberDiff line change
@@ -776,8 +776,6 @@ func NewApplicationSetCommand(clientOpts *argocdclient.ClientOptions) *cobra.Com
776776
}
777777
}
778778

779-
// sourcePosition startes with 1, thus, it needs to be decreased by 1 to find the correct index in the list of sources
780-
sourcePosition = sourcePosition - 1
781779
visited := cmdutil.SetAppSpecOptions(c.Flags(), &app.Spec, &appOpts, sourcePosition)
782780
if visited == 0 {
783781
log.Error("Please set at least one option to update")

0 commit comments

Comments
 (0)