Skip to content

Commit

Permalink
do not request jobs states anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
lconsuegra committed Jan 15, 2021
1 parent 68b4a2e commit 4b61efa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/jobs.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ func (e *Exporter) jobsMetrics(ch chan<- prometheus.Metric) error {

printer := attr["printer-name"][0].Value.(string)

jobs, err := e.client.GetJobs(printer, "", ipp.JobStateFilterAll, false, 0, 0, []string{"job-state"})
jobs, err := e.client.GetJobs(printer, "", ipp.JobStateFilterAll, false, 0, 0, []string{})
if err != nil {
e.log.Error(err, "failed to fetch all jobs states")
e.log.Error(err, "failed to fetch all jobs")
return err
}

Expand Down

0 comments on commit 4b61efa

Please sign in to comment.