Skip to contentSkip to conversation

wic: fix type of no-table option

PATCH New Ed Bartosh 1 participant 1 message Mar 23, 2016

lore
Share & tools
lore

Ed Bartosh

author
#0 lore raw

PATCH 1/1 wic: fix type of no-table option

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.

---
 scripts/lib/wic/ksparser.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/lib/wic/ksparser.py +1 -1
index 2f1e097..8c3f808 100644
@@ -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')
Signature · 1 line
2.1.4