Merge "Correct type of HeatTemplate20161014 to cfn"

This commit is contained in:
Jenkins 2016-05-26 06:46:59 +00:00 committed by Gerrit Code Review
commit b2e02dd923

View File

@ -1454,7 +1454,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'})