Use latest HOT version in Resource.build_template_dict
Change-Id: I9de95357fc1ca61fee2a79ab7adbfc8c2100cf63
This commit is contained in:
parent
68fa82cbc5
commit
0d33c45ccf
|
@ -2034,14 +2034,14 @@ class Resource(object):
|
|||
params, props, outputs, description):
|
||||
if tmpl_type == 'hot':
|
||||
tmpl_dict = {
|
||||
hot_tmpl.HOTemplate20150430.VERSION: '2015-04-30',
|
||||
hot_tmpl.HOTemplate20150430.DESCRIPTION: description,
|
||||
hot_tmpl.HOTemplate20150430.PARAMETERS: params,
|
||||
hot_tmpl.HOTemplate20150430.OUTPUTS: outputs,
|
||||
hot_tmpl.HOTemplate20150430.RESOURCES: {
|
||||
hot_tmpl.HOTemplate20161014.VERSION: '2016-10-14',
|
||||
hot_tmpl.HOTemplate20161014.DESCRIPTION: description,
|
||||
hot_tmpl.HOTemplate20161014.PARAMETERS: params,
|
||||
hot_tmpl.HOTemplate20161014.OUTPUTS: outputs,
|
||||
hot_tmpl.HOTemplate20161014.RESOURCES: {
|
||||
res_name: {
|
||||
hot_tmpl.HOTemplate20150430.RES_TYPE: res_type,
|
||||
hot_tmpl.HOTemplate20150430.RES_PROPERTIES: props}}}
|
||||
hot_tmpl.HOTemplate20161014.RES_TYPE: res_type,
|
||||
hot_tmpl.HOTemplate20161014.RES_PROPERTIES: props}}}
|
||||
else:
|
||||
tmpl_dict = {
|
||||
cfn_tmpl.CfnTemplate.ALTERNATE_VERSION: '2012-12-12',
|
||||
|
|
|
@ -1322,7 +1322,7 @@ class ResourceTest(common.HeatTestCase):
|
|||
}
|
||||
|
||||
expected_template = {
|
||||
'heat_template_version': '2015-04-30',
|
||||
'heat_template_version': '2016-10-14',
|
||||
'description': 'Initial template of TestResource',
|
||||
'parameters': {
|
||||
'name': {'type': 'string'},
|
||||
|
|
Loading…
Reference in New Issue