aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_s3_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_s3_configure.go
parent89948a373b746442e20b51a90b21744c8e6d215c (diff)
downloadseaweedfs-6793bc853c8b54823157bda6af4385411f8f6aea.tar.xz
seaweedfs-6793bc853c8b54823157bda6af4385411f8f6aea.zip
help message when in simulation mode
Diffstat (limited to 'weed/shell/command_s3_configure.go')
-rw-r--r--weed/shell/command_s3_configure.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/weed/shell/command_s3_configure.go b/weed/shell/command_s3_configure.go
index cefb1deeb..ddcafd847 100644
--- a/weed/shell/command_s3_configure.go
+++ b/weed/shell/command_s3_configure.go
@@ -42,7 +42,6 @@ func (c *commandS3Configure) Do(args []string, commandEnv *CommandEnv, writer io
secretKey := s3ConfigureCommand.String("secret_key", "", "specify the secret key")
isDelete := s3ConfigureCommand.Bool("delete", false, "delete users, actions or access keys")
apply := s3ConfigureCommand.Bool("apply", false, "update and apply s3 configuration")
-
if err = s3ConfigureCommand.Parse(args); err != nil {
return nil
}
@@ -83,6 +82,7 @@ func (c *commandS3Configure) Do(args []string, commandEnv *CommandEnv, writer io
}
}
if changed {
+ infoAboutSimulationMode(writer, *apply, "-apply")
if *isDelete {
var exists []int
for _, cmdAction := range cmdActions {
@@ -151,6 +151,7 @@ func (c *commandS3Configure) Do(args []string, commandEnv *CommandEnv, writer io
}
}
} else if *user != "" && *actions != "" {
+ infoAboutSimulationMode(writer, *apply, "-apply")
identity := iam_pb.Identity{
Name: *user,
Actions: cmdActions,