Add the sysprep message printing in the decorator
[snf-image-creator] / image_creator / os_type / freebsd.py
index 7dc8f43..94b6a7c 100644 (file)
@@ -43,14 +43,10 @@ import re
 class Freebsd(Unix):
     """OS class for FreeBSD Unix-like os"""
 
-    @sysprep()
-    def cleanup_password(self, print_header=True):
+    @sysprep("Cleaning up passwords & locking all user accounts")
+    def cleanup_password(self):
         """Remove all passwords and lock all user accounts"""
 
-        if print_header:
-            self.out.output("Cleaning up passwords & locking all user "
-                            "accounts")
-
         master_passwd = []
 
         for line in self.g.cat('/etc/master.passwd').splitlines():