One missed hadoop_version->plugin_version
Change-Id: I7696d4bda30c72d3930fe01790903ab814246771
This commit is contained in:
parent
55e129f866
commit
4585a9d004
|
@ -138,10 +138,14 @@ class GeneralConfigAction(workflows.Action):
|
|||
plugin, hadoop_version = whelpers.\
|
||||
get_plugin_and_hadoop_version(request)
|
||||
|
||||
choices = [(template.id, template.name)
|
||||
for template in templates
|
||||
if (template.hadoop_version == hadoop_version and
|
||||
template.plugin_name == plugin)]
|
||||
choices = []
|
||||
for template in templates:
|
||||
version = (
|
||||
getattr(template, "hadoop_version", None) or
|
||||
template.plugin_version
|
||||
)
|
||||
if version == hadoop_version and template.plugin_name == plugin:
|
||||
choices.append((template.id, template.name))
|
||||
|
||||
if not choices:
|
||||
choices.append(("", _("No Templates Available")))
|
||||
|
|
Loading…
Reference in New Issue