Add missing docstrings
[snf-image-creator] / image_creator / os_type / slackware.py
index 5eb823b..5b0b571 100644 (file)
@@ -35,8 +35,14 @@ from image_creator.os_type.linux import Linux, sysprep
 
 
 class Slackware(Linux):
+    """OS class for Slackware Linux"""
     @sysprep()
-    def cleanup_log(self):
+    def cleanup_log(self, print_header=True):
+        """Empty all files under /var/log"""
+
+        if print_header:
+            self.out.output('Emptying all files under /var/log')
+
         # In slackware the metadata about installed packages are
         # stored in /var/log/packages. Clearing all /var/log files
         # will destroy the package management system.