]> code.ossystems Code Review - openembedded-core.git/commitdiff
wic: fix type of no-table option
authorEd Bartosh <ed.bartosh@linux.intel.com>
Wed, 23 Mar 2016 11:24:33 +0000 (13:24 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 28 Mar 2016 14:54:51 +0000 (15:54 +0100)
Type of --no-table option was incorrectly set in new wks parser.
It causes parser to require argument for this option, which makes
wic to fail with wks files that use --no-table:
    Error: argument --no-table: expected one argument

Changed action parameter to 'store_true' to fix the issue.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/wic/ksparser.py

index 2f1e0978db5cd39c88e9ac11c090d20a68573605..8c3f80882cbe5c139820eadbdfed0349e436a355 100644 (file)
@@ -113,7 +113,7 @@ class KickStart(object):
         part.add_argument('--fsoptions', dest='fsopts')
         part.add_argument('--fstype')
         part.add_argument('--label')
-        part.add_argument('--no-table')
+        part.add_argument('--no-table', action='store_true')
         part.add_argument('--ondisk', '--ondrive', dest='disk')
         part.add_argument("--overhead-factor", type=overheadtype, default=1.3)
         part.add_argument('--part-type')