Plugin resource name fixed for REST API calls.

Change-Id: Ib23b7e1f081fbc30cdaee7167e0f718590075a92
Fixes: bug #1189627
This commit is contained in:
Sergey Lukjanov 2013-06-11 01:41:51 +04:00
parent 35e7c47f27
commit 02833c02a6
2 changed files with 3 additions and 0 deletions

View File

@ -38,6 +38,8 @@ CONF.register_opts(opts)
class PluginInterface(resources.BaseResource):
__metaclass__ = abc.ABCMeta
__resource_name__ = 'plugin'
name = 'plugin_interface'
def get_plugin_opts(self):

View File

@ -53,6 +53,7 @@ class BaseResource(object):
class Resource(BaseResource):
def __init__(self, _name, _info):
self._name = _name
self.__resource_name__ = _name
self._info = _info
def __getattr__(self, k):