Skip to content

Commit

Permalink
Fix servergroups query
Browse files Browse the repository at this point in the history
In the dynamic query PR that merged recently there was a
copy/paste error which caused servergroups to get lost.

This fixes the issue and returns this functionality to its
original state.

Signed-off-by: John Schnake <[email protected]>
  • Loading branch information
johnSchnake committed Apr 29, 2019
1 parent ee6ecc8 commit d5927ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/discovery/queries.go
Original file line number Diff line number Diff line change
Expand Up @@ -343,11 +343,11 @@ func queryServerGroups(kubeClient kubernetes.Interface, recorder *QueryRecorder,
logrus.Info("servergroups not specified in non-nil Resources. Skipping servergroups query.")
return nil
}
objqry := func() (interface{}, error) { return kubeClient.Discovery().ServerVersion() }
objqry := func() (interface{}, error) { return kubeClient.Discovery().ServerGroups() }
query := func() (time.Duration, error) {
return timedObjectQuery(cfg.OutputDir(), "serverversion.json", objqry)
return timedObjectQuery(cfg.OutputDir(), "servergroups.json", objqry)
}
timedQuery(recorder, "serverversion", "", query)
timedQuery(recorder, "servergroups", "", query)

return nil
}

0 comments on commit d5927ae

Please sign in to comment.