+ def list_sysprep(self):
+ """List all sysprep actions"""
+
+ is_sysprep = lambda x: x.startswith('sysprep_') and \
+ callable(getattr(self, x))
+ tasks = [getattr(self, x) for x in dir(self) if is_sysprep(x)]
+
+ included = [t for t in tasks if not getattr(t, "excluded", False)]
+ excluded = [t for t in tasks if getattr(t, "excluded", False)]
+
+ return included, excluded
+
+ def list_data_cleanup(self):
+ """List all data_cleanup actions"""
+
+ is_cleanup = lambda x: x.startswith('data_cleanup_') and \
+ callable(getattr(self, x))
+ tasks = [getattr(self, x) for x in dir(self) if is_cleanup(x)]
+
+ included = [t for t in tasks if not getattr(t, "excluded", False)]
+ excluded = [t for t in tasks if getattr(t, "excluded", False)]
+
+ return included, excluded
+