Commit 6df939f7 authored by Nikos Skalkotos's avatar Nikos Skalkotos
Browse files

In cleanup_userdata sysprep check if /home exists

parent 35b13de5
......@@ -92,7 +92,9 @@ class Unix(OSBase):
def cleanup_userdata(self, print_header=True):
"""Delete sensitive userdata"""
homedirs = ['/root'] +'/home/')
homedirs = ['/root']
if self.g.is_dir('/home/'):
homedirs +='/home/')
if print_header:
self.out.output("Removing sensitive user data under %s" %
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment