On Fri, May 27, 2011 at 12:51:11PM +0200, Michael Hanselmann wrote:
> The check for container items is useful for tuples and/or lists with
> non-uniform values. The “anything” check can be used when any value
> should be accepted for an item.
> 
> The job ID check, which uses the regexp check, will be used for
> expressing opcode dependencies on other jobs.
> 
> Signed-off-by: Michael Hanselmann <[email protected]>
> ---
>  lib/ht.py                  |   47 
> ++++++++++++++++++++++++++++++++++++++++++++
>  test/ganeti.ht_unittest.py |   26 ++++++++++++++++++++++++
>  2 files changed, 73 insertions(+), 0 deletions(-)
> 
> diff --git a/lib/ht.py b/lib/ht.py
> index a0c787e..d5ae544 100644
> --- a/lib/ht.py
> +++ b/lib/ht.py
> @@ -271,6 +292,10 @@ TStrictPositiveInt = \
>  TPositiveFloat = \
>    TAnd(TFloat, WithDesc("EqualGreaterZero")(lambda v: v >= 0.0))
>  
> +#: Job ID
> +TJobId = TOr(TPositiveInt,
                ^^^^^^^^^^^^

LGTM++

iustin

Reply via email to