diff options
Diffstat (limited to 'scripts/lib/wic/ksparser.py')
-rw-r--r-- | scripts/lib/wic/ksparser.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/lib/wic/ksparser.py b/scripts/lib/wic/ksparser.py index 968b8e1312..a0393008eb 100644 --- a/scripts/lib/wic/ksparser.py +++ b/scripts/lib/wic/ksparser.py | |||
@@ -27,12 +27,15 @@ | |||
27 | 27 | ||
28 | import os | 28 | import os |
29 | import shlex | 29 | import shlex |
30 | import logging | ||
31 | |||
30 | from argparse import ArgumentParser, ArgumentError, ArgumentTypeError | 32 | from argparse import ArgumentParser, ArgumentError, ArgumentTypeError |
31 | 33 | ||
32 | from wic import msger | ||
33 | from wic.engine import find_canned | 34 | from wic.engine import find_canned |
34 | from wic.partition import Partition | 35 | from wic.partition import Partition |
35 | 36 | ||
37 | logger = logging.getLogger('wic') | ||
38 | |||
36 | class KickStartError(Exception): | 39 | class KickStartError(Exception): |
37 | """Custom exception.""" | 40 | """Custom exception.""" |
38 | pass | 41 | pass |
@@ -168,7 +171,7 @@ class KickStart(): | |||
168 | 171 | ||
169 | self._parse(parser, confpath) | 172 | self._parse(parser, confpath) |
170 | if not self.bootloader: | 173 | if not self.bootloader: |
171 | msger.warning('bootloader config not specified, using defaults') | 174 | logger.warning('bootloader config not specified, using defaults\n') |
172 | self.bootloader = bootloader.parse_args([]) | 175 | self.bootloader = bootloader.parse_args([]) |
173 | 176 | ||
174 | def _parse(self, parser, confpath): | 177 | def _parse(self, parser, confpath): |