예제 #1
0
 def __init__(self, **kwargs):
     variant = kwargs.pop("variant", "vmware")
     kwargs.update(VARIANTS.get(variant, {}))
     QemuVariantImage.__init__(self, **kwargs)
     # Set the QemuVariant mutate_callback so that OVA is called.
     self.mutate_callback = self.write_ova
     # Ensure that coreos.ovf is included in the tar
     self.ovf_path = os.path.join(self._tmpdir, "coreos.ovf")
예제 #2
0
 def __init__(self, *args, **kwargs):
     variant = kwargs.pop("variant", "vmware")
     kwargs.update(VARIANTS.get(variant, {}))
     QemuVariantImage.__init__(self, *args, **kwargs)
     self.desc_ovf_path = os.path.join(self._tmpdir, "desc.ovf")