Correct type of HeatTemplate20161014 to cfn

The commit Ib0ffa76e6c562dfbddca5f9dce807f2c6ea3eb82 adds
a new cfn template 'HeatTemplateFormatVersion.2016-10-14' to
support function 'Fn::Equals'. But the commit missed to change
the logic of template-version-list.

Change-Id: I8745cc4ecc660e198709e88659893641fb35c14f
This commit is contained in:
huangtianhua 2016-05-26 10:24:44 +08:00
parent e5202ef454
commit 60d9fb9384

View File

@ -1451,7 +1451,7 @@ class EngineService(service.Service):
for name in mgr.names()]
versions = []
for t in _template_classes:
if t[1] in [cfntemplate.CfnTemplate, cfntemplate.HeatTemplate]:
if issubclass(t[1], cfntemplate.CfnTemplate):
versions.append({'version': t[0], 'type': 'cfn'})
else:
versions.append({'version': t[0], 'type': 'hot'})