add vmware

This commit is contained in:
Neil Hanlon 2022-11-12 18:46:50 -05:00
parent 67d3ed3046
commit e4c0eb2abc
Signed by untrusted user: neil
GPG Key ID: 705BC21EC3C70F34
2 changed files with 3 additions and 2 deletions

View File

@ -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:

View File

@ -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 = [