]> code.ossystems Code Review - openembedded-core.git/commitdiff
scripts: Fixed typo in parameter that was causing exception
authorHumberto Ibarra <humberto.ibarra.lopez@intel.com>
Fri, 1 Jul 2016 15:37:24 +0000 (10:37 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 8 Jul 2016 08:55:41 +0000 (09:55 +0100)
There is a typo in the logging parameters, "filname" is being used instead of "filename" for yocto-kernel, yocto-layer and wic scripts. This didn't cause issues before since python 2 didn't validate unused parameters but with python >= 3.4.3 an exception is thrown. This patch fixes this parameter name.

[YOCTO #9834]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/wic

index 9023755302ae29dd2429a149f81e800ccc3676a4..fe2c33f0e7b25c41aebee8c597f5541e81cc6e60 100755 (executable)
@@ -294,7 +294,7 @@ subcommands = {
 
 
 def start_logging(loglevel):
-    logging.basicConfig(filname='wic.log', filemode='w', level=loglevel)
+    logging.basicConfig(filename='wic.log', filemode='w', level=loglevel)
 
 
 def main(argv):