aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_fs_configure.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-05-31 14:48:46 -0700
committerchrislu <chris.lu@gmail.com>2022-05-31 14:48:46 -0700
commit6793bc853c8b54823157bda6af4385411f8f6aea (patch)
tree0e0be0f20906d86793eb90af96cec4ca6e78b219 /weed/shell/command_fs_configure.go
parent89948a373b746442e20b51a90b21744c8e6d215c (diff)
downloadseaweedfs-6793bc853c8b54823157bda6af4385411f8f6aea.tar.xz
seaweedfs-6793bc853c8b54823157bda6af4385411f8f6aea.zip
help message when in simulation mode
Diffstat (limited to 'weed/shell/command_fs_configure.go')
-rw-r--r--weed/shell/command_fs_configure.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/weed/shell/command_fs_configure.go b/weed/shell/command_fs_configure.go
index 73bb8e5c6..2c4ef2211 100644
--- a/weed/shell/command_fs_configure.go
+++ b/weed/shell/command_fs_configure.go
@@ -71,6 +71,7 @@ func (c *commandFsConfigure) Do(args []string, commandEnv *CommandEnv, writer io
}
if *locationPrefix != "" {
+ infoAboutSimulationMode(writer, *apply, "-apply")
locConf := &filer_pb.FilerConf_PathConf{
LocationPrefix: *locationPrefix,
Collection: *collection,
@@ -128,3 +129,10 @@ func (c *commandFsConfigure) Do(args []string, commandEnv *CommandEnv, writer io
return nil
}
+
+func infoAboutSimulationMode(writer io.Writer, forceMode bool, forceModeOption string) {
+ if forceMode {
+ return
+ }
+ fmt.Fprintf(writer, "Running in simulation mode. Use \"%s\" option to apply the changes.\n", forceModeOption)
+}