On Wed, Mar 09, 2011 at 01:29:27PM +0100, Federica Teodori wrote:
> Hi Dejan, 
>  
> > Thanks for the patch, but can you please repost as an attachment.
> > The mail agent did the reformatting :)
> 
> There you go, and apologies for the mess.

No problems. Applied. Thanks again for the patch.

Cheers,

Dejan

> Bye, 
> Federica

> From ea6b27b7200705e798f0b5d0e76e3d6e0d5dbf4f Mon Sep 17 00:00:00 2001
> From: Federica Teodori <[email protected]>
> Date: Wed, 9 Mar 2011 12:47:09 +0100
> Subject: [PATCH] Add warning if start or stop interval is not zero
> 
> ---
>  shell/modules/ra.py.in |    5 +++++
>  1 files changed, 5 insertions(+), 0 deletions(-)
> 
> diff --git a/shell/modules/ra.py.in b/shell/modules/ra.py.in
> index a7b3c3e..022f767 100644
> --- a/shell/modules/ra.py.in
> +++ b/shell/modules/ra.py.in
> @@ -479,6 +479,11 @@ class RAInfo(object):
>                  common_warn("%s: action %s not advertised in meta-data, it 
> may not be supported by the RA" % (id,op))
>                  rc |= 1
>                  continue
> +         if "interval" in n_ops[op]:
> +                if n_ops[op]["interval"] != "0":
> +                    if op == "start" or op == "stop":
> +                        v = n_ops[op]["interval"]
> +                        common_warn("%s: Specified interval for %s is %s, 
> this is greater than 0 thus invalid" %(id,op,v))
>              try:
>                  adv_timeout = self.actions()[op]["timeout"]
>              except:
> -- 
> 1.7.3.4
> 

> _______________________________________________________
> Linux-HA-Dev: [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/

_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to