From 039c66b11ad817cf70233866de91b42208261bda Mon Sep 17 00:00:00 2001 From: Steven Hardy Date: Tue, 22 Jan 2013 13:45:11 +0000 Subject: heat engine : make WatchRule initial state NODATA Initial state should be NODATA not NORMAL, as we've not done any metric evaluation until the first evaluation period has elapsed fixes bug 1102446 Change-Id: Ic41df29c00a5df2f3d161bc1b1d054d816c5afa5 Signed-off-by: Steven Hardy --- heat/engine/watchrule.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'heat/engine/watchrule.py') diff --git a/heat/engine/watchrule.py b/heat/engine/watchrule.py index 6450bb8bf..a613898fc 100644 --- a/heat/engine/watchrule.py +++ b/heat/engine/watchrule.py @@ -44,7 +44,7 @@ class WatchRule(object): updated_at = timestamp.Timestamp(db_api.watch_rule_get, 'updated_at') def __init__(self, context, watch_name, rule, stack_id=None, - state=NORMAL, wid=None, watch_data=[], + state=NODATA, wid=None, watch_data=[], last_evaluated=timeutils.utcnow()): self.context = context self.now = timeutils.utcnow() -- cgit v1.2.1