mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
hostutil: disable host info collection on openbsd (#7699)
This commit is contained in:
committed by
GitHub
parent
afcba41190
commit
3e97f5cf62
17
helper/hostutil/hostinfo_error.go
Normal file
17
helper/hostutil/hostinfo_error.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package hostutil
|
||||
|
||||
import "fmt"
|
||||
|
||||
// HostInfoError is a typed error for more convenient error checking.
|
||||
type HostInfoError struct {
|
||||
Type string
|
||||
Err error
|
||||
}
|
||||
|
||||
func (e *HostInfoError) WrappedErrors() []error {
|
||||
return []error{e.Err}
|
||||
}
|
||||
|
||||
func (e *HostInfoError) Error() string {
|
||||
return fmt.Sprintf("%s: %s", e.Type, e.Err.Error())
|
||||
}
|
||||
Reference in New Issue
Block a user