diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-11-08 00:09:11 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-11-08 17:47:56 -0800 |
| commit | 4729a57cc01ca360e7aa70c43b2290bb2e8bcd2d (patch) | |
| tree | 6003837cf15ab74ec1c6e809708dc146a8bc2f1a /weed/shell/command_cluster_ps.go | |
| parent | d9dd72ea560da14ecb3cbf06cdf94b82071a9658 (diff) | |
| download | seaweedfs-4729a57cc01ca360e7aa70c43b2290bb2e8bcd2d.tar.xz seaweedfs-4729a57cc01ca360e7aa70c43b2290bb2e8bcd2d.zip | |
use constants
Diffstat (limited to 'weed/shell/command_cluster_ps.go')
| -rw-r--r-- | weed/shell/command_cluster_ps.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/weed/shell/command_cluster_ps.go b/weed/shell/command_cluster_ps.go index ff92064db..5ed1677c8 100644 --- a/weed/shell/command_cluster_ps.go +++ b/weed/shell/command_cluster_ps.go @@ -4,6 +4,7 @@ import ( "context" "flag" "fmt" + "github.com/chrislusf/seaweedfs/weed/cluster" "io" "github.com/chrislusf/seaweedfs/weed/pb/master_pb" @@ -37,7 +38,7 @@ func (c *commandClusterPs) Do(args []string, commandEnv *CommandEnv, writer io.W err = commandEnv.MasterClient.WithClient(func(client master_pb.SeaweedClient) error { resp, err := client.ListClusterNodes(context.Background(), &master_pb.ListClusterNodesRequest{ - ClientType: "filer", + ClientType: cluster.FilerType, }) fmt.Fprintf(writer, "the cluster has %d filers\n", len(resp.ClusterNodes)) |
