summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/plugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/wic/plugin.py')
-rw-r--r--scripts/lib/wic/plugin.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/scripts/lib/wic/plugin.py b/scripts/lib/wic/plugin.py
index b45478cd9a..36a120bb1c 100644
--- a/scripts/lib/wic/plugin.py
+++ b/scripts/lib/wic/plugin.py
@@ -62,20 +62,3 @@ class PluginMgr:
62 cls._loaded.append(ppath) 62 cls._loaded.append(ppath)
63 63
64 return pluginbase.get_plugins(ptype) 64 return pluginbase.get_plugins(ptype)
65
66 @classmethod
67 def get_plugin_methods(cls, ptype, pname, methods):
68 """
69 The methods param is a dict with the method names to find. On
70 return, the dict values will be filled in with pointers to the
71 corresponding methods. If one or more methods are not found,
72 None is returned.
73 """
74 result = {}
75 plugin = cls.get_plugins(ptype).get(pname)
76 for method in methods:
77 if not hasattr(plugin, method):
78 raise WicError("Unimplemented %s plugin interface for: %s" %
79 (method, pname))
80 result[method] = getattr(plugin, method)
81 return result