aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_remote_configure.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-08-17 12:42:03 -0700
committerchrislu <chris.lu@gmail.com>2022-08-17 12:42:03 -0700
commit2b580a7566536fb229a50af94b67d9df46724f34 (patch)
tree73bd8091568909116fbb83cb1c5400c9ee004333 /weed/shell/command_remote_configure.go
parenteaeb141b09326aa7c4d1d1e7b7f27e119d019f9c (diff)
downloadseaweedfs-2b580a7566536fb229a50af94b67d9df46724f34.tar.xz
seaweedfs-2b580a7566536fb229a50af94b67d9df46724f34.zip
also migrate jsonpb
Diffstat (limited to 'weed/shell/command_remote_configure.go')
-rw-r--r--weed/shell/command_remote_configure.go10
1 files changed, 1 insertions, 9 deletions
diff --git a/weed/shell/command_remote_configure.go b/weed/shell/command_remote_configure.go
index 306858271..4491dc456 100644
--- a/weed/shell/command_remote_configure.go
+++ b/weed/shell/command_remote_configure.go
@@ -9,7 +9,6 @@ import (
"github.com/seaweedfs/seaweedfs/weed/pb/remote_pb"
"github.com/seaweedfs/seaweedfs/weed/remote_storage"
"github.com/seaweedfs/seaweedfs/weed/util"
- "google.golang.org/protobuf/jsonpb"
"google.golang.org/protobuf/proto"
"io"
"regexp"
@@ -159,15 +158,8 @@ func (c *commandRemoteConfigure) listExistingRemoteStorages(commandEnv *CommandE
conf.TencentSecretKey = strings.Repeat("*", len(conf.TencentSecretKey))
conf.WasabiSecretKey = strings.Repeat("*", len(conf.WasabiSecretKey))
- m := jsonpb.Marshaler{
- EmitDefaults: false,
- Indent: " ",
- }
-
- err := m.Marshal(writer, conf)
- fmt.Fprintln(writer)
+ return filer.ProtoToText(writer, conf)
- return err
})
}