Harmonize query call layout

This commit is contained in:
Calle Pettersson
2018-06-06 11:35:13 +02:00
parent 667d06116d
commit cd365c6a3b
4 changed files with 27 additions and 14 deletions

View File

@@ -56,7 +56,8 @@ type Win32_ComputerSystem struct {
func (c *CSCollector) collect(ch chan<- prometheus.Metric) (*prometheus.Desc, error) {
var dst []Win32_ComputerSystem
if err := wmi.Query(queryAll(&dst), &dst); err != nil {
q := queryAll(&dst)
if err := wmi.Query(q, &dst); err != nil {
return nil, err
}