Commit 9fc1fe11 authored by Klaus Aehlig's avatar Klaus Aehlig
Browse files

Add gnt-debug wconfd listalllocks simplify debugging the lock status.
Signed-off-by: default avatarKlaus Aehlig <>
Reviewed-by: default avatarPetr Pudlak <>
parent 0a4c8808
......@@ -646,6 +646,12 @@ def Wconfd(opts, args): # pylint: disable=W0613
result = wconfd.Client().ListLocks(wconfdcontext)
print "Answer: %s" % (result,)
elif args[0] == "listalllocks":
if len(args) != 1:
ToStderr("Command 'listalllocks' takes no arguments.")
return 1
result = wconfd.Client().ListAllLocks()
print "Answer: %s" % (result,)
ToStderr("Command '%s' not supported", args[0])
return 1
......@@ -143,6 +143,11 @@ printed to the console.
A request to list the locks owned by the given job id is
sent to WConfd and the answer is displayed.
| **wconfd** listalllocks
A request to list all locks in use, directly or indirectly, is
sent to WConfd and the answer is displayed.
.. vim: set textwidth=72 :
.. Local Variables:
.. mode: rst
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