Cloudstack - allow OVA template upload
This commit is contained in:
parent
f1439e6118
commit
bfcf5cd3d1
|
@ -292,9 +292,9 @@ func resourceCloudStackTemplateDelete(d *schema.ResourceData, meta interface{})
|
||||||
|
|
||||||
func verifyTemplateParams(d *schema.ResourceData) error {
|
func verifyTemplateParams(d *schema.ResourceData) error {
|
||||||
format := d.Get("format").(string)
|
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(
|
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
|
return nil
|
||||||
|
|
Loading…
Reference in New Issue