aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/commands.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/shell/commands.go')
-rw-r--r--weed/shell/commands.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/weed/shell/commands.go b/weed/shell/commands.go
index 378c89b25..e3de42aa9 100644
--- a/weed/shell/commands.go
+++ b/weed/shell/commands.go
@@ -108,6 +108,10 @@ func (ce *CommandEnv) AdjustedUrl(location *filer_pb.Location) string {
return location.Url
}
+func (ce *CommandEnv) GetDataCenter() string {
+ return ce.MasterClient.DataCenter
+}
+
func parseFilerUrl(entryPath string) (filerServer string, filerPort int64, path string, err error) {
if strings.HasPrefix(entryPath, "http") {
var u *url.URL