Revision d9aff2ae image_creator/os_type/__init__.py
b/image_creator/os_type/__init__.py | ||
---|---|---|
183 | 183 |
descr = wrapper.fill(textwrap.dedent(sysprep.__doc__)) |
184 | 184 |
self.out.output(' %s:\n%s\n' % (name, descr)) |
185 | 185 |
|
186 |
def print_sysprep_params(self): |
|
187 |
"""Print the system preparation parameter the user may use""" |
|
188 |
|
|
189 |
self.out.output("Needed system preparation parameters:") |
|
190 |
|
|
191 |
params = self.needed_sysprep_params() |
|
192 |
|
|
193 |
if len(params) == 0: |
|
194 |
self.out.output("(none)") |
|
195 |
return |
|
196 |
|
|
197 |
for param in params: |
|
198 |
self.out.output("\t%s (%s): %s" % |
|
199 |
(param.description, param.name, |
|
200 |
self.sysprep_params[param.name] if param.name in |
|
201 |
self.sysprep_params else "(none)")) |
|
202 |
|
|
186 | 203 |
def do_sysprep(self): |
187 | 204 |
"""Prepare system for image creation.""" |
188 | 205 |
|
Also available in: Unified diff