Skip to content
Snippets Groups Projects
Commit f8cccab5 authored by Nikos Skalkotos's avatar Nikos Skalkotos
Browse files

Fix a bug introduced in 2e50092b

The do_sysprep method was not updated to comply with the changes
made in list_syspreps method
parent 7f623b20
No related branches found
No related tags found
No related merge requests found
......@@ -209,10 +209,12 @@ class OSBase(object):
self.out.output('Preparing system for image creation:')
tasks, _ = self.list_syspreps()
size = len(tasks)
tasks = self.list_syspreps()
enabled = filter(lambda x: x.enabled, tasks)
size = len(enabled)
cnt = 0
for task in tasks:
for task in enabled:
cnt += 1
self.out.output(('(%d/%d)' % (cnt, size)).ljust(7), False)
task()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment