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")
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")