mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-11-08 16:56:14 +08:00
also migrate jsonpb
This commit is contained in:
@@ -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: " ",
|
||||
}
|
||||
return filer.ProtoToText(writer, conf)
|
||||
|
||||
err := m.Marshal(writer, conf)
|
||||
fmt.Fprintln(writer)
|
||||
|
||||
return err
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user