Revision 6df939f7 image_creator/os_type/unix.py

b/image_creator/os_type/unix.py
92 92
    def cleanup_userdata(self, print_header=True):
93 93
        """Delete sensitive userdata"""
94 94

  
95
        homedirs = ['/root'] + self.ls('/home/')
95
        homedirs = ['/root']
96
        if self.g.is_dir('/home/'):
97
            homedirs += self.ls('/home/')
96 98

  
97 99
        if print_header:
98 100
            self.out.output("Removing sensitive user data under %s" %

Also available in: Unified diff