Commit bb4013df authored by Klaus Aehlig's avatar Klaus Aehlig
Browse files

Make gnt-debug wconfd listlocks use only job ids (again)



Now that the product has been replaced by the sum we can, again,
identify jobs only by their job id.
Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
Reviewed-by: default avatarPetr Pudlak <pudlak@google.com>
parent ef534188
......@@ -639,10 +639,10 @@ def Wconfd(opts, args): # pylint: disable=W0613
result = wconfd.Client().Echo(args[1])
print "Answer: %s" % (result,)
elif args[0] == "listlocks":
if len(args) != 3:
ToStderr("Command 'listlocks' takes precisely two arguments.")
if len(args) != 2:
ToStderr("Command 'listlocks' takes precisely one argument.")
return 1
wconfdcontext = (int(args[1]), int(args[2]),
wconfdcontext = (int(args[1]),
utils.livelock.GuessLockfileFor("masterd"))
result = wconfd.Client().ListLocks(wconfdcontext)
print "Answer: %s" % (result,)
......
......@@ -138,9 +138,9 @@ Tests the WConf daemon by invoking its ``echo`` function.
A given text is sent to WConfd through RPC, echoed back by WConfd and
printed to the console.
| **wconfd** listlocks *jid* *threadid*
| **wconfd** listlocks *jid*
A request to list the locks owned by the given job id and thread id is
A request to list the locks owned by the given job id is
sent to WConfd and the answer is displayed.
.. vim: set textwidth=72 :
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment