Skip to content
This repository has been archived by the owner on May 6, 2022. It is now read-only.

Commit

Permalink
Replaced magic string with commented const
Browse files Browse the repository at this point in the history
  • Loading branch information
gmrodgers committed Mar 27, 2020
1 parent 08ff9af commit 7281456
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions cmd/svcat/command/brokerfiltered.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ import (
"github.com/spf13/cobra"
)

const (
// BrokerAll is the default argument to specify when you want to list or filter resources for all brokers
BrokerAll string = ""
)

// HasBrokerFlag represents a command that supports --broker.
type HasBrokerFlag interface {
// ApplyBrokerFlag validates and persists the broker related flag.
Expand Down
2 changes: 1 addition & 1 deletion cmd/svcat/plan/get_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func (c *GetCmd) getAll() error {
Namespace: c.Namespace,
Scope: c.Scope,
}
classes, err := c.App.RetrieveClasses(classOpts, "")
classes, err := c.App.RetrieveClasses(classOpts, command.BrokerAll)
if err != nil {
return fmt.Errorf("unable to list classes (%s)", err)
}
Expand Down

0 comments on commit 7281456

Please sign in to comment.