summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/plugin.py
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2017-02-15 20:13:41 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-04 23:18:17 +0000
commitb9839fd6648c05b9052ab922bf81eec2fffd47bb (patch)
treecbef8fbfb033a7994efe75c23aa38923f40cb6b8 /scripts/lib/wic/plugin.py
parent59b72c0b260001b98eca87f3e6c0dfccef38182c (diff)
downloadpoky-b9839fd6648c05b9052ab922bf81eec2fffd47bb.tar.gz
wic: remove PluginMgr.get_plugin_methods
Call methods directly instead of getting them with get_plugin_methods and then calling. (From OE-Core rev: efcd07fe17bf55441059b00a5becc3952e0a4075) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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