diff --git a/image_creator/os_type/__init__.py b/image_creator/os_type/__init__.py index e1481d1e49e93ce6d299467a2b303c1ac15aeae0..a48a3701a00726353661611aa0caf4c86f65d5b3 100644 --- a/image_creator/os_type/__init__.py +++ b/image_creator/os_type/__init__.py @@ -92,6 +92,11 @@ class OSBase(object): 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): error_msg = "Syprep operation %s does not exist for %s" % \