From 67b8080144e39135e0599c6a654df044af1e1060 Mon Sep 17 00:00:00 2001 From: Anis Elleuch Date: Tue, 6 Sep 2016 19:38:39 +0100 Subject: [PATCH] Fix control lock rpc name in control lock cmd (#2627) --- cmd/control-lock-main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/control-lock-main.go b/cmd/control-lock-main.go index 620412cb8..7843fa696 100644 --- a/cmd/control-lock-main.go +++ b/cmd/control-lock-main.go @@ -134,9 +134,9 @@ func lockControl(c *cli.Context) { args := &GenericArgs{} reply := &SystemLockState{} - err = client.Call("Control.LockInfo", args, reply) + err = client.Call("Controller.LockInfo", args, reply) // 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. b, err := json.MarshalIndent(*reply, "", " ") fatalIf(err, "Failed to parse the RPC lock info response")