cmd/cork: Add esx platform to download-image
@@ -58,7 +58,7 @@ func init() {
downloadImageCmd.Flags().BoolVar(&downloadImageVerify,
"verify", true, "verify")
downloadImageCmd.Flags().Var(&downloadImagePlatformList,
- "platform", "Choose qemu, qemu_uefi, gce, or aws. Multiple platforms can be specified by repeating the flag")
+ "platform", "Choose aws, esx, gce, qemu, or qemu_uefi. Multiple platforms can be specified by repeating the flag")
root.AddCommand(downloadImageCmd)
}
@@ -80,10 +80,11 @@ func (platforms *platformList) Set(value string) error {
// Maps names of platforms to a list of file suffixes to download.
platformMap := map[string][]string{
+ "aws": {"_ami_vmdk_image.vmdk.bz2"},
+ "esx": {"_vmware_ova.ova"},
+ "gce": {"_gce.tar.gz"},
"qemu": {"_image.bin.bz2"},
"qemu_uefi": {"_qemu_uefi_efi_code.fd", "_qemu_uefi_efi_vars.fd", "_image.bin.bz2"},
- "gce": {"_gce.tar.gz"},
- "aws": {"_ami_vmdk_image.vmdk.bz2"},
}
values := strings.Split(value, ",")
