Revision d415dda2 image_creator/image.py

b/image_creator/image.py
45 45
class Image(object):
46 46
    """The instances of this class can create images out of block devices."""
47 47

  
48
    def __init__(self, device, output, meta={}):
48
    def __init__(self, device, output, **kargs):
49 49
        """Create a new Image instance"""
50 50

  
51 51
        self.device = device
52 52
        self.out = output
53
        self.meta = meta
53

  
54
        self.meta = kargs['meta'] if 'meta' in kargs else {}
55
        self.sysprep_params = \
56
            kargs['sysprep_params'] if 'sysprep_params' in kargs else {}
57

  
54 58
        self.progress_bar = None
55 59
        self.guestfs_device = None
56 60
        self.size = 0
......
117 121
            self.enable()
118 122

  
119 123
        cls = os_cls(self.distro, self.ostype)
120
        self._os = cls(self)
124
        self._os = cls(self, sysprep_params=self.sysprep_params)
121 125

  
122 126
        self._os.collect_metadata()
123 127

  

Also available in: Unified diff