projects
/
snf-image-creator
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
35b13de
)
In cleanup_userdata sysprep check if /home exists
author
Nikos Skalkotos
<skalkoto@grnet.gr>
Tue, 21 May 2013 07:47:15 +0000
(10:47 +0300)
committer
Nikos Skalkotos
<skalkoto@grnet.gr>
Tue, 21 May 2013 07:47:15 +0000
(10:47 +0300)
image_creator/os_type/unix.py
patch
|
blob
|
history
diff --git
a/image_creator/os_type/unix.py
b/image_creator/os_type/unix.py
index
8489d4d
..
f2abd0e
100644
(file)
--- a/
image_creator/os_type/unix.py
+++ b/
image_creator/os_type/unix.py
@@
-92,7
+92,9
@@
class Unix(OSBase):
def cleanup_userdata(self, print_header=True):
"""Delete sensitive userdata"""
- homedirs = ['/root'] + self.ls('/home/')
+ homedirs = ['/root']
+ if self.g.is_dir('/home/'):
+ homedirs += self.ls('/home/')
if print_header:
self.out.output("Removing sensitive user data under %s" %