Fixing template filtering by plugin name

Filtering the node group templates and cluster templates
tables by plugin was failing because it was using the
incorrect field name.  It has now been updated to search
against "plugin_name", which is correct.

Change-Id: I41760fa9cfa714cf1c9ae90229cb48ff759289fc
Closes-Bug: #1503235
This commit is contained in:
Chad Roberts 2015-10-06 11:42:57 -04:00
parent 57666482da
commit 6463f35bf6
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ LOG = logging.getLogger(__name__)
class ClusterTemplatesFilterAction(tables.FilterAction):
filter_type = "server"
filter_choices = (('name', _("Name"), True),
('plugin', _("Plugin"), True),
('plugin_name', _("Plugin"), True),
('hadoop_version', _("Version"), True),
('description', _("Description")))

View File

@ -26,7 +26,7 @@ LOG = logging.getLogger(__name__)
class NodeGroupTemplatesFilterAction(tables.FilterAction):
filter_type = "server"
filter_choices = (('name', _("Name"), True),
('plugin', _("Plugin"), True),
('plugin_name', _("Plugin"), True),
('hadoop_version', _("Version"), True))