mirror of
https://github.com/chrislusf/seaweedfs
synced 2024-07-01 06:40:45 +02:00
better printout
This commit is contained in:
parent
e66865a8c5
commit
ab97b17e62
|
@ -46,8 +46,6 @@ func runShell(command *Command, args []string) bool {
|
||||||
}
|
}
|
||||||
if cluster == "" {
|
if cluster == "" {
|
||||||
*shellOptions.Masters = "localhost:9333"
|
*shellOptions.Masters = "localhost:9333"
|
||||||
fmt.Printf("master: %s\n", *shellOptions.Masters)
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
*shellOptions.Masters = v.GetString("cluster." + cluster + ".master")
|
*shellOptions.Masters = v.GetString("cluster." + cluster + ".master")
|
||||||
*shellInitialFiler = v.GetString("cluster." + cluster + ".filer")
|
*shellInitialFiler = v.GetString("cluster." + cluster + ".filer")
|
||||||
|
|
|
@ -65,10 +65,12 @@ func RunShell(options ShellOptions) {
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
|
fmt.Printf("master: %s ", *options.Masters)
|
||||||
if len(filers) > 0 {
|
if len(filers) > 0 {
|
||||||
fmt.Printf("filers: %v\n", filers)
|
fmt.Printf("filers: %v", filers)
|
||||||
commandEnv.option.FilerAddress = filers[rand.Intn(len(filers))]
|
commandEnv.option.FilerAddress = filers[rand.Intn(len(filers))]
|
||||||
}
|
}
|
||||||
|
fmt.Println()
|
||||||
}
|
}
|
||||||
|
|
||||||
if commandEnv.option.FilerAddress != "" {
|
if commandEnv.option.FilerAddress != "" {
|
||||||
|
|
Loading…
Reference in a new issue