We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c0dfdd commit 53c9c06Copy full SHA for 53c9c06
internal/cli/ops_manager_servers_list.go
@@ -31,7 +31,7 @@ type opsManagerServersListOpts struct {
31
store store.AgentLister
32
}
33
34
-func (opts *opsManagerServersListOpts) init() error {
+func (opts *opsManagerServersListOpts) initStore() error {
35
var err error
36
opts.store, err = store.New()
37
return err
@@ -56,7 +56,7 @@ func OpsManagerAgentsListBuilder() *cobra.Command {
56
Args: cobra.NoArgs,
57
Short: description.ListServer,
58
PreRunE: func(cmd *cobra.Command, args []string) error {
59
- return opts.init()
+ return opts.PreRunE(opts.initStore)
60
},
61
RunE: func(cmd *cobra.Command, args []string) error {
62
return opts.Run()
0 commit comments