diff options
author | Steven Hardy <shardy@redhat.com> | 2013-01-22 13:45:11 +0000 |
---|---|---|
committer | Steven Hardy <shardy@redhat.com> | 2013-01-22 13:50:08 +0000 |
commit | 039c66b11ad817cf70233866de91b42208261bda (patch) | |
tree | 97f432315ca7ab91a25f99234f9154d3209384cb /heat/engine | |
parent | 7e1548516762cf599bf2c720c7d3a46113e3c8b9 (diff) | |
download | heat-039c66b11ad817cf70233866de91b42208261bda.tar.gz |
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 <shardy@redhat.com>
Diffstat (limited to 'heat/engine')
-rw-r--r-- | heat/engine/watchrule.py | 2 |
1 files changed, 1 insertions, 1 deletions
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() |