diff --git a/go.mod b/go.mod index 6bf61002..64ab9b71 100644 --- a/go.mod +++ b/go.mod @@ -10,7 +10,7 @@ module github.com/atc0005/check-vmware go 1.22 require ( - github.com/atc0005/go-nagios v0.17.0-alpha.1 + github.com/atc0005/go-nagios v0.17.0-alpha.2 github.com/google/go-cmp v0.6.0 github.com/rs/zerolog v1.33.0 github.com/vmware/govmomi v0.44.1 diff --git a/go.sum b/go.sum index 10ae4252..79c9f9ca 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,5 @@ -github.com/atc0005/go-nagios v0.17.0-alpha.1 h1:TIM68/Ga39sIVfWA6YI2oivNrjxrjnfBApDYOBA22pg= -github.com/atc0005/go-nagios v0.17.0-alpha.1/go.mod h1:n2RHhsrgI8xiapqkJ240dKLwMXWbWvkOPLE92x0IGaM= +github.com/atc0005/go-nagios v0.17.0-alpha.2 h1:+BY4jCtBLdJ7C8z/9WpzgzLIi5GDs7Kvf9Z4IdpjqPM= +github.com/atc0005/go-nagios v0.17.0-alpha.2/go.mod h1:n2RHhsrgI8xiapqkJ240dKLwMXWbWvkOPLE92x0IGaM= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= diff --git a/vendor/github.com/atc0005/go-nagios/nagios.go b/vendor/github.com/atc0005/go-nagios/nagios.go index f1b43df7..69031854 100644 --- a/vendor/github.com/atc0005/go-nagios/nagios.go +++ b/vendor/github.com/atc0005/go-nagios/nagios.go @@ -467,11 +467,14 @@ func (p *Plugin) AddUniqueError(errs ...error) { } // SetOutputTarget assigns a target for Nagios plugin output. By default -// output is emitted to os.Stdout. +// output is emitted to os.Stdout. If given an invalid output target the +// default output target will be used instead. func (p *Plugin) SetOutputTarget(w io.Writer) { // Guard against potential nil argument. if w == nil { p.outputSink = os.Stdout + + return } p.outputSink = w diff --git a/vendor/modules.txt b/vendor/modules.txt index 3ef6c016..382d2021 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1,4 +1,4 @@ -# github.com/atc0005/go-nagios v0.17.0-alpha.1 +# github.com/atc0005/go-nagios v0.17.0-alpha.2 ## explicit; go 1.19 github.com/atc0005/go-nagios # github.com/google/go-cmp v0.6.0