Skip to content

Commit

Permalink
fix: --file usage is broken for 'argocd proj create' command (argopro…
Browse files Browse the repository at this point in the history
…j#13130)

Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
  • Loading branch information
alexmt committed Apr 6, 2023
1 parent 568baff commit 9b53eeb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/util/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,10 @@ func readProjFromURI(fileURL string, proj *v1alpha1.AppProject) error {
} else {
err = config.UnmarshalRemoteFile(fileURL, &proj)
}
return fmt.Errorf("error reading proj from uri: %w", err)
if err != nil {
return fmt.Errorf("error reading proj from uri: %w", err)
}
return nil
}

func SetProjSpecOptions(flags *pflag.FlagSet, spec *v1alpha1.AppProjectSpec, projOpts *ProjectOpts) int {
Expand Down

0 comments on commit 9b53eeb

Please sign in to comment.