diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-06-17 14:25:23 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-06-23 11:38:16 +0100 |
commit | cd7c72d6d5a5110173d0d3f60f2991b1dc30fc26 (patch) | |
tree | 07f389869448b6ce3618d86662e70ec9642fc244 /scripts/lib/wic/plugins/imager | |
parent | d92cda72ef605bf2f45437667c1fc36c76629d47 (diff) | |
download | openembedded-core-cd7c72d6d5a5110173d0d3f60f2991b1dc30fc26.tar.gz openembedded-core-cd7c72d6d5a5110173d0d3f60f2991b1dc30fc26.tar.bz2 openembedded-core-cd7c72d6d5a5110173d0d3f60f2991b1dc30fc26.zip |
wic: Code cleanup: bad-classmethod-argument
Fixed wrong name for the first argument in class methods.
Pylint complains about the issue this way:
Class method should have 'cls' as first argument
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts/lib/wic/plugins/imager')
-rw-r--r-- | scripts/lib/wic/plugins/imager/direct_plugin.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/lib/wic/plugins/imager/direct_plugin.py b/scripts/lib/wic/plugins/imager/direct_plugin.py index 17888e971c..1720f7bb20 100644 --- a/scripts/lib/wic/plugins/imager/direct_plugin.py +++ b/scripts/lib/wic/plugins/imager/direct_plugin.py @@ -36,7 +36,7 @@ class DirectPlugin(ImagerPlugin): name = 'direct' @classmethod - def __rootfs_dir_to_dict(self, rootfs_dirs): + def __rootfs_dir_to_dict(cls, rootfs_dirs): """ Gets a string that contain 'connection=dir' splitted by space and return a dict @@ -49,7 +49,7 @@ class DirectPlugin(ImagerPlugin): return krootfs_dir @classmethod - def do_create(self, subcmd, opts, *args): + def do_create(cls, subcmd, opts, *args): """ Create direct image, called from creator as 'direct' cmd """ @@ -67,7 +67,7 @@ class DirectPlugin(ImagerPlugin): image_output_dir = args[5] oe_builddir = args[6] - krootfs_dir = self.__rootfs_dir_to_dict(rootfs_dir) + krootfs_dir = cls.__rootfs_dir_to_dict(rootfs_dir) configmgr._ksconf = ksconf |