[oe-commits] [openembedded-core] 35/40: scripts: Fixed typo in parameter that was causing exception

git at git.openembedded.org git at git.openembedded.org
Thu Jul 7 12:39:26 UTC 2016


rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 01b231c01bd629b03ecbca3d9bf746e230ba2c9a
Author: Humberto Ibarra <humberto.ibarra.lopez at intel.com>
AuthorDate: Fri Jul 1 10:37:24 2016 -0500

    scripts: Fixed typo in parameter that was causing exception
    
    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 at intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 scripts/wic | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/wic b/scripts/wic
index 9023755..fe2c33f 100755
--- a/scripts/wic
+++ b/scripts/wic
@@ -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):

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list