Merge "Add cron_expression constraint to OS::Mistral::CronTrigger"

This commit is contained in:
Jenkins 2015-08-10 14:41:29 +00:00 committed by Gerrit Code Review
commit 457266f4c7
1 changed files with 6 additions and 1 deletions

View File

@ -13,6 +13,7 @@
from heat.common.i18n import _
from heat.engine import attributes
from heat.engine import constraints
from heat.engine import properties
from heat.engine import resource
from heat.engine import support
@ -46,7 +47,11 @@ class CronTrigger(resource.Resource):
),
PATTERN: properties.Schema(
properties.Schema.STRING,
_('Cron expression.')
_('Cron expression.'),
constraints=[
constraints.CustomConstraint(
'cron_expression')
]
),
WORKFLOW: properties.Schema(
properties.Schema.MAP,