From e4c0eb2abc733306a612047e041ec913db4e1100 Mon Sep 17 00:00:00 2001 From: Neil Hanlon Date: Sat, 12 Nov 2022 18:46:50 -0500 Subject: [PATCH] add vmware --- iso/empanadas/empanadas/common.py | 2 +- iso/empanadas/empanadas/scripts/build_image.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/iso/empanadas/empanadas/common.py b/iso/empanadas/empanadas/common.py index 71d6e0f..8dd5f6c 100644 --- a/iso/empanadas/empanadas/common.py +++ b/iso/empanadas/empanadas/common.py @@ -107,7 +107,7 @@ ALLOWED_TYPE_VARIANTS = { "Container": ["Base", "Minimal", "UBI"], "EC2": ["Base", "LVM"], "GenericCloud": ["Base", "LVM"], - "Vagrant": ["Libvirt", "Vbox"], + "Vagrant": ["Libvirt", "Vbox", "VMware"], "OCP": None } def valid_type_variant(_type: str, variant: str="") -> bool: diff --git a/iso/empanadas/empanadas/scripts/build_image.py b/iso/empanadas/empanadas/scripts/build_image.py index 4f4c2a0..d8f7a92 100644 --- a/iso/empanadas/empanadas/scripts/build_image.py +++ b/iso/empanadas/empanadas/scripts/build_image.py @@ -123,7 +123,8 @@ class ImageBuild: if self.image_type in ["Vagrant"]: _map = { "Vbox": "vmdk", - "Libvirt": "qcow2" + "Libvirt": "qcow2", + "VMware": "vhd" } output = f"{_map[self.variant]}" #type: ignore self.stage_commands = [