Fixed UI bug with broken plugins page
Horizon requires id from returned objects but Savanna plugins don't have such ones. Actually this code was in savanna client when it was in savanna-dashboard code: https://github.com/openstack/savanna-dashboard/blob/0.3a1/savannadashboard/api/plugins.py#L26-L30 Fixes bug#1239676 Change-Id: I6326d0478f5ddbfc4258450e6c0da88cd518de62
This commit is contained in:
1
AUTHORS
1
AUTHORS
@@ -1,3 +1,4 @@
|
||||
Alexander Ignatov <aignatov@mirantis.com>
|
||||
Alexander Kuznetsov <akuznetsov@mirantis.com>
|
||||
Jeremy Stanley <fungi@yuggoth.org>
|
||||
Nikita Konovalov <nkonovalov@mirantis.com>
|
||||
|
||||
@@ -23,6 +23,12 @@ from savannaclient.api import base
|
||||
class Plugin(base.Resource):
|
||||
resource_name = 'Plugin'
|
||||
|
||||
def __init__(self, manager, info):
|
||||
base.Resource.__init__(self, manager, info)
|
||||
|
||||
# Horizon requires each object in table to have an id
|
||||
self.id = self.name
|
||||
|
||||
|
||||
class PluginManager(base.ResourceManager):
|
||||
resource_class = Plugin
|
||||
|
||||
Reference in New Issue
Block a user