From f8cccab5464e07d05e2295e38669676b9f2aa543 Mon Sep 17 00:00:00 2001 From: Nikos Skalkotos Date: Thu, 21 Jun 2012 02:13:59 +0300 Subject: [PATCH] Fix a bug introduced in 2e50092b2437913561a37c646e The do_sysprep method was not updated to comply with the changes made in list_syspreps method --- image_creator/os_type/__init__.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/image_creator/os_type/__init__.py b/image_creator/os_type/__init__.py index a48a370..5601a87 100644 --- a/image_creator/os_type/__init__.py +++ b/image_creator/os_type/__init__.py @@ -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() -- 1.7.10.4