Browse Source

shell: fix fs.configure

pull/1658/head
Chris Lu 4 years ago
parent
commit
4c72482536
  1. 4
      weed/shell/command_fs_configure.go

4
weed/shell/command_fs_configure.go

@ -77,14 +77,16 @@ func (c *commandFsConfigure) Do(args []string, commandEnv *CommandEnv, writer io
return filer.StreamContent(commandEnv.MasterClient, &buf, respLookupEntry.Entry.Chunks, 0, math.MaxInt64)
}); err != nil {
}); err != nil && err != filer_pb.ErrNotFound {
return err
}
fc := filer.NewFilerConf()
if buf.Len() > 0 {
if err = fc.LoadFromBytes(buf.Bytes()); err != nil {
return err
}
}
if *locationPrefix != "" {
locConf := &filer_pb.FilerConf_PathConf{

Loading…
Cancel
Save