commit
34c6f1bf4d
|
@ -22,7 +22,8 @@ class InstanceManager(object):
|
||||||
|
|
||||||
def add(self, class_path):
|
def add(self, class_path):
|
||||||
self.cache = None
|
self.cache = None
|
||||||
self.class_list.append(class_path)
|
if class_path not in self.class_list:
|
||||||
|
self.class_list.append(class_path)
|
||||||
|
|
||||||
def remove(self, class_path):
|
def remove(self, class_path):
|
||||||
self.cache = None
|
self.cache = None
|
||||||
|
|
|
@ -86,7 +86,7 @@ class PluginsList(AuthenticatedResource):
|
||||||
if args['type']:
|
if args['type']:
|
||||||
return list(plugins.all(plugin_type=args['type']))
|
return list(plugins.all(plugin_type=args['type']))
|
||||||
|
|
||||||
return plugins.all()
|
return list(plugins.all())
|
||||||
|
|
||||||
|
|
||||||
class Plugins(AuthenticatedResource):
|
class Plugins(AuthenticatedResource):
|
||||||
|
|
Loading…
Reference in New Issue