diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2017-02-15 14:16:38 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-04 10:42:30 +0000 |
commit | cbe7dbd31f2292416d8e801e142679c69d9a44bc (patch) | |
tree | d5be186a9640e0c682ff827138c2940c3e198fbc /scripts/lib/wic/help.py | |
parent | 15442d072bb6d93bd9b941726f93262503053da5 (diff) | |
download | openembedded-core-contrib-cbe7dbd31f2292416d8e801e142679c69d9a44bc.tar.gz |
wic: use PluginMgr directly
Instead of making a singleton object of PluginMgr class
it's simpler to use PluginMgr class directly as any class
is a singleton.
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Diffstat (limited to 'scripts/lib/wic/help.py')
-rw-r--r-- | scripts/lib/wic/help.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/wic/help.py b/scripts/lib/wic/help.py index 47e3d1666b..4aba12de75 100644 --- a/scripts/lib/wic/help.py +++ b/scripts/lib/wic/help.py @@ -28,7 +28,7 @@ import subprocess import logging -from wic.plugin import pluginmgr, PLUGIN_TYPES +from wic.plugin import PluginMgr, PLUGIN_TYPES logger = logging.getLogger('wic') @@ -68,7 +68,7 @@ def get_wic_plugins_help(): result = wic_plugins_help for plugin_type in PLUGIN_TYPES: result += '\n\n%s PLUGINS\n\n' % plugin_type.upper() - for name, plugin in pluginmgr.get_plugins(plugin_type).items(): + for name, plugin in PluginMgr.get_plugins(plugin_type).items(): result += "\n %s plugin:\n" % name if plugin.__doc__: result += plugin.__doc__ |