From b49976b1735873bfd35b229e167c26b8a422a9dd Mon Sep 17 00:00:00 2001 From: Jan Vcelak Date: Thu, 24 Jan 2013 13:34:41 +0100 Subject: [PATCH] plugin base: fix plugin name extraction --- tuned/plugins/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tuned/plugins/base.py b/tuned/plugins/base.py index 6328d6d..2cf40b0 100644 --- a/tuned/plugins/base.py +++ b/tuned/plugins/base.py @@ -33,7 +33,7 @@ class Plugin(object): @property def name(self): - return self.__class__.__module__.split(".")[-1].lstrip("plugin_") + return self.__class__.__module__.split(".")[-1].split("_", 1)[1] # # Plugin configuration manipulation and helpers.