Browse Source

adjust formatting remote location

pull/2321/head
Chris Lu 3 years ago
parent
commit
fbfc90fd1e
  1. 3
      weed/remote_storage/remote_storage.go

3
weed/remote_storage/remote_storage.go

@ -57,6 +57,9 @@ func parseNoBucketLocation(remote string) (loc *remote_pb.RemoteStorageLocation)
}
func FormatLocation(loc *remote_pb.RemoteStorageLocation) string {
if loc.Bucket == "" {
return fmt.Sprintf("%s%s", loc.Name, loc.Path)
}
return fmt.Sprintf("%s/%s%s", loc.Name, loc.Bucket, loc.Path)
}

Loading…
Cancel
Save