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

Add sysprep_info method in os_type classes

This method takes a sysprep object as argument and returns the name
and a description for this object.
parent 2e50092b
No related branches found
No related tags found
No related merge requests found
...@@ -92,6 +92,11 @@ class OSBase(object): ...@@ -92,6 +92,11 @@ class OSBase(object):
return [x for x in objs if self._is_sysprep(x)] return [x for x in objs if self._is_sysprep(x)]
def sysprep_info(self, obj):
assert self._is_sysprep(obj), "Object is not a sysprep"
return (obj.__name__.replace('_', '-'), textwrap.dedent(obj.__doc__))
def _sysprep_change_status(self, name, status): def _sysprep_change_status(self, name, status):
error_msg = "Syprep operation %s does not exist for %s" % \ error_msg = "Syprep operation %s does not exist for %s" % \
......
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