mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
Fix control lock rpc name in control lock cmd (#2627)
This commit is contained in:
parent
239a34ca97
commit
67b8080144
@ -134,9 +134,9 @@ func lockControl(c *cli.Context) {
|
|||||||
|
|
||||||
args := &GenericArgs{}
|
args := &GenericArgs{}
|
||||||
reply := &SystemLockState{}
|
reply := &SystemLockState{}
|
||||||
err = client.Call("Control.LockInfo", args, reply)
|
err = client.Call("Controller.LockInfo", args, reply)
|
||||||
// logs the error and returns if err != nil.
|
// logs the error and returns if err != nil.
|
||||||
fatalIf(err, "RPC Control.LockInfo call failed")
|
fatalIf(err, "RPC Controller.LockInfo call failed")
|
||||||
// print the lock info on the console.
|
// print the lock info on the console.
|
||||||
b, err := json.MarshalIndent(*reply, "", " ")
|
b, err := json.MarshalIndent(*reply, "", " ")
|
||||||
fatalIf(err, "Failed to parse the RPC lock info response")
|
fatalIf(err, "Failed to parse the RPC lock info response")
|
||||||
|
Loading…
Reference in New Issue
Block a user