Skip to content

Commit

Permalink
ci_run: fix token option query
Browse files Browse the repository at this point in the history
The `token` variable was getting the `--project` option value instead of the
`--token` itself, making it completely unusable.

Signed-off-by: Bruno Meneguele <bmeneg@redhat.com>
  • Loading branch information
bmeneg committed Oct 1, 2021
1 parent c9fde25 commit 1326331
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/ci_run.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ var ciTriggerCmd = &cobra.Command{
if err != nil {
log.Fatal(err)
}
token, err := cmd.Flags().GetString("project")
token, err := cmd.Flags().GetString("token")
if err != nil {
log.Fatal(err)
}
Expand Down

0 comments on commit 1326331

Please sign in to comment.