Revision 020b738b image_creator/os_type/__init__.py

b/image_creator/os_type/__init__.py
138 138
        """Returns information about a sysprep object"""
139 139
        assert self._is_sysprep(obj), "Object is not a sysprep"
140 140

  
141
        return (obj.__name__.replace('_', '-'), textwrap.dedent(obj.__doc__))
141
        SysprepInfo = namedtuple("SysprepInfo", "name description")
142

  
143
        return SysprepInfo(obj.__name__.replace('_', '-'),
144
                           textwrap.dedent(obj.__doc__))
142 145

  
143 146
    def get_sysprep_by_name(self, name):
144 147
        """Returns the sysprep object with the given name"""

Also available in: Unified diff