From 9b9eba5272e05ed71beaeab883cf54b5479e4543 Mon Sep 17 00:00:00 2001 From: Toshiaki Takahashi Date: Fri, 14 Aug 2020 22:40:54 +0000 Subject: [PATCH] Add "state" to condition keyname "state" can be specified as a condition for event-based alarm. So this patch add it to the condition kayname list. https://review.opendev.org/#/c/700167/ Change-Id: Ib0d3a87c09aaea7b5c7863330285f86025f591ae --- toscaparser/triggers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/toscaparser/triggers.py b/toscaparser/triggers.py index c142e69e..9a70fc79 100644 --- a/toscaparser/triggers.py +++ b/toscaparser/triggers.py @@ -23,10 +23,10 @@ SECTIONS = (DESCRIPTION, EVENT, SCHEDULE, METRIC, METADATA, ('description', 'event_type', 'schedule', 'metric', 'metadata', 'target_filter', 'condition', 'action') CONDITION_KEYNAMES = (CONSTRAINT, GRANULARITY, EVALUATIONS, AGGREGATION_METHOD, - THRESHOLD, COMPARISON_OPERATOR, RESOURCE_TYPE) = \ + THRESHOLD, COMPARISON_OPERATOR, RESOURCE_TYPE, STATE) = \ ('constraint', 'granularity', 'evaluations', 'aggregation_method', 'threshold', 'comparison_operator', - 'resource_type') + 'resource_type', 'state') log = logging.getLogger('tosca')