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

Make sysprep_info return a named tuple

It used to return a tuple
parent 2075a76a
No related branches found
No related tags found
No related merge requests found
......@@ -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"""
......
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