Revision 2e50092b

b/image_creator/os_type/__init__.py
90 90
        objs = [getattr(self, name) for name in dir(self) \
91 91
            if not name.startswith('_')]
92 92

  
93
        enabled = [x for x in objs if self._is_sysprep(x) and x.enabled]
94
        disabled = [x for x in objs if self._is_sysprep(x) and not x.enabled]
95

  
96
        return enabled, disabled
93
        return [x for x in objs if self._is_sysprep(x)]
97 94

  
98 95
    def _sysprep_change_status(self, name, status):
99 96

  
......
123 120
    def print_syspreps(self):
124 121
        """Print enabled and disabled system preperation operations."""
125 122

  
126
        enabled, disabled = self.list_syspreps()
123
        syspreps = self.list_syspreps()
124
        enabled = filter(lambda x: x.enabled, syspreps)
125
        disabled = filter(lambda x: not x.enabled, syspreps)
127 126

  
128 127
        wrapper = textwrap.TextWrapper()
129 128
        wrapper.subsequent_indent = '\t'

Also available in: Unified diff