diff options
-rw-r--r-- | scripts/lib/wic/kickstart/__init__.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/scripts/lib/wic/kickstart/__init__.py b/scripts/lib/wic/kickstart/__init__.py index 600098293a..b1406a0457 100644 --- a/scripts/lib/wic/kickstart/__init__.py +++ b/scripts/lib/wic/kickstart/__init__.py | |||
@@ -58,16 +58,13 @@ def read_kickstart(path): | |||
58 | def __init__(self): | 58 | def __init__(self): |
59 | superclass.__init__(self, mapping=commandMap[using_version]) | 59 | superclass.__init__(self, mapping=commandMap[using_version]) |
60 | 60 | ||
61 | ks = ksparser.KickstartParser(KSHandlers(), errorsAreFatal=False) | 61 | ks = ksparser.KickstartParser(KSHandlers(), errorsAreFatal=True) |
62 | 62 | ||
63 | try: | 63 | try: |
64 | ks.readKickstart(path) | 64 | ks.readKickstart(path) |
65 | except (kserrors.KickstartParseError, kserrors.KickstartError), err: | 65 | except (kserrors.KickstartParseError, kserrors.KickstartError), err: |
66 | if msger.ask("Errors occured on kickstart file, skip and continue?"): | 66 | msger.warning("Errors occurred when parsing kickstart file: %s\n" % path) |
67 | msger.warning("%s" % err) | 67 | msger.error("%s" % err) |
68 | pass | ||
69 | else: | ||
70 | raise errors.KsError("%s" % err) | ||
71 | 68 | ||
72 | return ks | 69 | return ks |
73 | 70 | ||