Hi,

As per subject, a very trivial patch that adds a warning in case an
interval different from zero is given to a start or stop operation.

Bye,
Federica



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:
_______________________________________________________
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