Revision 5886f568 image_creator/os_type/ubuntu.py

b/image_creator/os_type/ubuntu.py
35 35

  
36 36

  
37 37
class Ubuntu(Linux):
38
    def get_metadata(self):
39
        meta = super(Ubuntu, self).get_metadata()
38
    def __init__(self, rootdev, ghandler):
39
        super(Ubuntu, self).__init__(rootdev, ghandler)
40

  
40 41
        apps = self.g.inspect_list_applications(self.root)
41 42
        for app in apps:
42 43
            if app['app_name'] == 'kubuntu-desktop':
43
                meta['OS'] = 'kubuntu'
44
                meta['DESCRIPTION'] = \
45
                            meta['DESCRIPTION'].replace('Ubuntu', 'Kubuntu')
44
                self.meta['OS'] = 'kubuntu'
45
                self.meta['DESCRIPTION'] = \
46
                        self.meta['DESCRIPTION'].replace('Ubuntu', 'Kubuntu')
46 47
                break
47
        return meta
48 48

  
49 49
# vim: set sta sts=4 shiftwidth=4 sw=4 et ai :

Also available in: Unified diff