Skip to content

Commit

Permalink
cmd/gomote: fix create -list when querying for non-LUCI builders
Browse files Browse the repository at this point in the history
Change-Id: Ibab2147a62963e0668bbfd785791572188dc1c4f
Reviewed-on: https://go-review.googlesource.com/c/build/+/633197
Reviewed-by: Carlos Amedee <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>
Auto-Submit: Michael Knyszek <[email protected]>
  • Loading branch information
mknyszek authored and gopherbot committed Dec 3, 2024
1 parent a09fab2 commit 70b8315
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd/gomote/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,12 @@ func create(args []string) error {

fs.Parse(args)
if listBuilders {
if luciDisabled() {
for _, bt := range builders() {
fmt.Fprintln(os.Stdout, bt.Name)
}
return nil
}
swarmingBuilders, err := swarmingBuilders()
if err != nil {
return err
Expand Down

0 comments on commit 70b8315

Please sign in to comment.