diff --git a/image_creator/os_type/__init__.py b/image_creator/os_type/__init__.py index e41c52ccb04d9e4f82fa69fe023fec335aadca6a..3ac92bec9ce98ebe7660b53b88376c09d54b1d6a 100644 --- a/image_creator/os_type/__init__.py +++ b/image_creator/os_type/__init__.py @@ -138,7 +138,10 @@ class OSBase(object): """Returns information about a sysprep object""" assert self._is_sysprep(obj), "Object is not a sysprep" - return (obj.__name__.replace('_', '-'), textwrap.dedent(obj.__doc__)) + SysprepInfo = namedtuple("SysprepInfo", "name description") + + return SysprepInfo(obj.__name__.replace('_', '-'), + textwrap.dedent(obj.__doc__)) def get_sysprep_by_name(self, name): """Returns the sysprep object with the given name"""