LGTM

On Mon, Mar 3, 2014 at 2:48 PM, Klaus Aehlig <[email protected]> wrote:

> So that wconfd's locking can be debugged directly.
>
> Signed-off-by: Klaus Aehlig <[email protected]>
> ---
>  lib/client/gnt_debug.py | 8 ++++++++
>  man/gnt-debug.rst       | 5 +++++
>  2 files changed, 13 insertions(+)
>
> diff --git a/lib/client/gnt_debug.py b/lib/client/gnt_debug.py
> index 0229356..19a5955 100644
> --- a/lib/client/gnt_debug.py
> +++ b/lib/client/gnt_debug.py
> @@ -637,6 +637,14 @@ def Wconfd(opts, args): # pylint: disable=W0613
>        return 1
>      result = wconfd.Client().Echo(args[1])
>      print "Answer: %s" % (result,)
> +  elif args[0] == "listlocks":
> +    if len(args) != 2:
> +      ToStderr("Command 'listlocks' takes only precisely argument.")
> +      return 1
> +    result = wconfd.Client().ListLocks(int(args[1]), "")
> +    # TODO: add canonical path to death-detection file for that job
> +    #       once that is implemented
> +    print "Answer: %s" % (result,)
>    else:
>      ToStderr("Command '%s' not supported", args[0])
>      return 1
> diff --git a/man/gnt-debug.rst b/man/gnt-debug.rst
> index f8e2ff4..c34acf2 100644
> --- a/man/gnt-debug.rst
> +++ b/man/gnt-debug.rst
> @@ -132,6 +132,11 @@ 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*
> +
> +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 :
>  .. Local Variables:
>  .. mode: rst
> --
> 1.9.0.279.gdc9e3eb
>
>

Reply via email to