Allow event specification in the environment

For additional validation we duplicate environment format on the client
side, so to be able to create stacks with event sinks, we need to add
the key here as well.

Change-Id: Ia77fcdd68ee4020d0aa3d3235d38b2e5f268b7dd
This commit is contained in:
Thomas Herve 2016-01-05 13:10:50 +01:00
parent 62fb2583f2
commit 39fb1243af
2 changed files with 6 additions and 2 deletions

View File

@ -16,8 +16,11 @@ from heatclient.openstack.common._i18n import _
import yaml
SECTIONS = (PARAMETER_DEFAULTS, PARAMETERS, RESOURCE_REGISTRY) = \
('parameter_defaults', 'parameters', 'resource_registry')
SECTIONS = (
PARAMETER_DEFAULTS, PARAMETERS, RESOURCE_REGISTRY, EVENT_SINKS
) = (
'parameter_defaults', 'parameters', 'resource_registry', 'event_sinks'
)
def parse(env_str):

View File

@ -30,6 +30,7 @@ class YamlEnvironmentTest(testtools.TestCase):
parameter_defaults: {}
parameters: {}
resource_registry: {}
event_sinks: {}
'''
tpl1 = environment_format.parse(yaml1)
environment_format.default_for_missing(tpl1)