aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_volume_mount.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/shell/command_volume_mount.go')
-rw-r--r--weed/shell/command_volume_mount.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/weed/shell/command_volume_mount.go b/weed/shell/command_volume_mount.go
index cffc7136b..ded7b7e66 100644
--- a/weed/shell/command_volume_mount.go
+++ b/weed/shell/command_volume_mount.go
@@ -34,6 +34,10 @@ func (c *commandVolumeMount) Help() string {
func (c *commandVolumeMount) Do(args []string, commandEnv *CommandEnv, writer io.Writer) (err error) {
+ if err = commandEnv.confirmIsLocked(); err != nil {
+ return
+ }
+
if len(args) != 2 {
fmt.Fprintf(writer, "received args: %+v\n", args)
return fmt.Errorf("need 2 args of <volume server host:port> <volume id>")