mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-30 02:02:43 +00:00
update diagnose command to no longer use docker (#19102)
docker dependency should no longer be included in the binary
This commit is contained in:
@@ -15,7 +15,6 @@ import (
|
||||
|
||||
wrapping "github.com/hashicorp/go-kms-wrapping/v2"
|
||||
|
||||
"github.com/docker/docker/pkg/ioutils"
|
||||
"github.com/hashicorp/consul/api"
|
||||
log "github.com/hashicorp/go-hclog"
|
||||
"github.com/hashicorp/go-secure-stdlib/reloadutil"
|
||||
@@ -159,7 +158,7 @@ func (c *OperatorDiagnoseCommand) RunWithParsedFlags() int {
|
||||
|
||||
if c.diagnose == nil {
|
||||
if c.flagFormat == "json" {
|
||||
c.diagnose = diagnose.New(&ioutils.NopWriter{})
|
||||
c.diagnose = diagnose.New(io.Discard)
|
||||
} else {
|
||||
c.UI.Output(version.GetVersion().FullVersionNumber(true))
|
||||
c.diagnose = diagnose.New(os.Stdout)
|
||||
|
||||
Reference in New Issue
Block a user