Skip to content

Commit

Permalink
terminal_services: Fix "The operation completed successfully." error
Browse files Browse the repository at this point in the history
Signed-off-by: Jan-Otto Kröpke <[email protected]>
  • Loading branch information
jkroepke committed Aug 2, 2024
1 parent 9488e07 commit 5d2d759
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,9 @@ func main() {
collectorNames := collector.Available()
sort.Strings(collectorNames)

fmt.Printf("Available collectors:\n")
fmt.Printf("Available collectors:\n") //nolint:forbidigo
for _, n := range collectorNames {
fmt.Printf(" - %s\n", n)
fmt.Printf(" - %s\n", n) //nolint:forbidigo
}

return
Expand Down
5 changes: 3 additions & 2 deletions pkg/collector/mssql/mssql.go
Original file line number Diff line number Diff line change
Expand Up @@ -1923,10 +1923,11 @@ func (c *Collector) Build() error {
c.mssqlCollectors = c.getMSSQLCollectors()

if *c.mssqlPrintCollectors {
fmt.Printf("Available SQLServer Classes:\n")
fmt.Printf("Available SQLServer Classes:\n") //nolint:forbidigo
for name := range c.mssqlCollectors {
fmt.Printf(" - %s\n", name)
fmt.Printf(" - %s\n", name) //nolint:forbidigo
}

os.Exit(0)
}

Expand Down

0 comments on commit 5d2d759

Please sign in to comment.