From bfcf5cd3d14aaaf10d6b2b4e17d3652511bcd134 Mon Sep 17 00:00:00 2001 From: benjvi Date: Wed, 3 Jun 2015 16:46:56 +0100 Subject: [PATCH] Cloudstack - allow OVA template upload --- builtin/providers/cloudstack/resource_cloudstack_template.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builtin/providers/cloudstack/resource_cloudstack_template.go b/builtin/providers/cloudstack/resource_cloudstack_template.go index f50316027..15c6ebec4 100644 --- a/builtin/providers/cloudstack/resource_cloudstack_template.go +++ b/builtin/providers/cloudstack/resource_cloudstack_template.go @@ -292,9 +292,9 @@ func resourceCloudStackTemplateDelete(d *schema.ResourceData, meta interface{}) func verifyTemplateParams(d *schema.ResourceData) error { format := d.Get("format").(string) - if format != "QCOW2" && format != "RAW" && format != "VHD" && format != "VMDK" { + if format != "OVA" && format != "QCOW2" && format != "RAW" && format != "VHD" && format != "VMDK" { return fmt.Errorf( - "%s is not a valid format. Valid options are 'QCOW2', 'RAW', 'VHD' and 'VMDK'", format) + "%s is not a valid format. Valid options are 'OVA','QCOW2', 'RAW', 'VHD' and 'VMDK'", format) } return nil