diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2017-02-15 14:58:22 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-04 10:42:30 +0000 |
commit | 875d4eede61b548d64f426c2ef077cc17e50cd45 (patch) | |
tree | b78fc9547efb5699f0850105805f37b2c1da43ce /scripts/lib/wic/plugins/imager | |
parent | aaab003e472416124d7342fc8c4a17c252b83f4d (diff) | |
download | openembedded-core-875d4eede61b548d64f426c2ef077cc17e50cd45.tar.gz openembedded-core-875d4eede61b548d64f426c2ef077cc17e50cd45.tar.bz2 openembedded-core-875d4eede61b548d64f426c2ef077cc17e50cd45.zip |
wic: reimplement PluginMgr.get_plugin_methods
Simplified the implementation of get_plugin_methods:
- get rid of looping over the dicrtionary, used access by key instead
- get rid of filling a dictionary that passed as a parameter
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Diffstat (limited to 'scripts/lib/wic/plugins/imager')
-rw-r--r-- | scripts/lib/wic/plugins/imager/direct.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/lib/wic/plugins/imager/direct.py b/scripts/lib/wic/plugins/imager/direct.py index b93273e877..4ab195519a 100644 --- a/scripts/lib/wic/plugins/imager/direct.py +++ b/scripts/lib/wic/plugins/imager/direct.py @@ -198,11 +198,11 @@ class DirectPlugin(ImagerPlugin): disk_name = self.parts[0].disk if source_plugin: name = "do_install_disk" - methods = PluginMgr.get_source_plugin_methods(source_plugin, - {name: None}) - methods["do_install_disk"](self._image, disk_name, self, self.workdir, - self.oe_builddir, self.bootimg_dir, - self.kernel_dir, self.native_sysroot) + method = PluginMgr.get_plugin_methods('source', source_plugin, + [name])[name] + method(self._image, disk_name, self, self.workdir, + self.oe_builddir, self.bootimg_dir, + self.kernel_dir, self.native_sysroot) full_path = self._image.path # Generate .bmap |