From 60d9fb938472e475f1c9f6b37d8876a0ea20690b Mon Sep 17 00:00:00 2001 From: huangtianhua Date: Thu, 26 May 2016 10:24:44 +0800 Subject: [PATCH] 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 --- heat/engine/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/heat/engine/service.py b/heat/engine/service.py index ab9fa09421..a5deb36814 100644 --- a/heat/engine/service.py +++ b/heat/engine/service.py @@ -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'})