So `default' in hot is translated to `Default' in cfn
Change-Id: Ifd50dbb993dd0cb177b0e16652c6ef17d12cd2e5
Fixes: bug #1199311
def _translate_parameters(self, parameters):
"""Get the parameters of the template translated into CFN format."""
HOT_TO_CFN_ATTRS = {'type': 'Type',
+ 'default': 'Default',
'description': 'Description'}
HOT_TO_CFN_TYPES = {'string': 'String'}
param1:
description: foo
type: string
+ default: boo
''')
- expected = {'param1': {'Description': 'foo', 'Type': 'String'}}
+ expected = {'param1': {'Description': 'foo',
+ 'Type': 'String',
+ 'Default': 'boo'}}
tmpl = parser.Template(hot_tpl)
self.assertEqual(tmpl[hot.PARAMETERS], expected)