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:
parent
62fb2583f2
commit
39fb1243af
@ -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):
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user