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

Fix cleanup_userdata sysprep

The function used to ignore directories when cleaning sensitive data
parent 12da78d5
No related branches found
No related tags found
No related merge requests found
......@@ -42,9 +42,7 @@ class Unix(OSBase):
sensitive_userdata = [
'.bash_history',
'.gnupg',
'.ssh',
'.mozilla',
'.thunderbird'
'.ssh'
]
def __init__(self, rootdev, ghandler, output):
......@@ -202,5 +200,7 @@ class Unix(OSBase):
fname = "%s/%s" % (homedir, data)
if self.g.is_file(fname):
self.g.scrub_file(fname)
elif self.g.is_dir(fname):
self.foreach_file(fname, self.g.scrub_file, ftype='r')
# vim: set sta sts=4 shiftwidth=4 sw=4 et ai :
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