Skip to content

Commit 53c9c06

Browse files
authored
CLOUDP-61595: mongocli ops-manager servers list does not validate project id requirement (#134)
1 parent 0c0dfdd commit 53c9c06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/cli/ops_manager_servers_list.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ type opsManagerServersListOpts struct {
3131
store store.AgentLister
3232
}
3333

34-
func (opts *opsManagerServersListOpts) init() error {
34+
func (opts *opsManagerServersListOpts) initStore() error {
3535
var err error
3636
opts.store, err = store.New()
3737
return err
@@ -56,7 +56,7 @@ func OpsManagerAgentsListBuilder() *cobra.Command {
5656
Args: cobra.NoArgs,
5757
Short: description.ListServer,
5858
PreRunE: func(cmd *cobra.Command, args []string) error {
59-
return opts.init()
59+
return opts.PreRunE(opts.initStore)
6060
},
6161
RunE: func(cmd *cobra.Command, args []string) error {
6262
return opts.Run()

0 commit comments

Comments
 (0)