Skip to content

Commit

Permalink
Get running plugins list out of config instead of mode (#391)
Browse files Browse the repository at this point in the history
Signed-off-by: liz <liz@heptio.com>
  • Loading branch information
liztio authored Mar 22, 2018
1 parent f3adf07 commit 815b8d7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/sonobuoy/app/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@ func submitSonobuoyRun(cmd *cobra.Command, args []string) {
os.Exit(1)
}

m := runflags.mode.Get()
plugins := []string{}
for _, plugin := range m.Selectors {
plugins = append(plugins, plugin.Name)
plugins := make([]string, len(cfg.Config.PluginSelections))
for i, plugin := range cfg.Config.PluginSelections {
plugins[i] = plugin.Name
}

if len(plugins) > 0 {
fmt.Printf("Running plugins: %v\n", strings.Join(plugins, ", "))
}
Expand Down

0 comments on commit 815b8d7

Please sign in to comment.