From 1e90f986f22604f808f7af3857a16fa21f7b2ba0 Mon Sep 17 00:00:00 2001 From: Hany Fahim Date: Wed, 30 Sep 2015 14:03:14 -0400 Subject: [PATCH] Update conditional to set UnlimitedResourceID for Zonename as well as Zoneid --- builtin/providers/cloudstack/resource_cloudstack_template.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/providers/cloudstack/resource_cloudstack_template.go b/builtin/providers/cloudstack/resource_cloudstack_template.go index c2d9459a7..2cce32ae7 100644 --- a/builtin/providers/cloudstack/resource_cloudstack_template.go +++ b/builtin/providers/cloudstack/resource_cloudstack_template.go @@ -239,7 +239,7 @@ func resourceCloudStackTemplateRead(d *schema.ResourceData, meta interface{}) er setValueOrUUID(d, "project", t.Project, t.Projectid) if t.Zoneid == "" { - setValueOrUUID(d, "zone", t.Zonename, UnlimitedResourceID) + setValueOrUUID(d, "zone", UnlimitedResourceID, UnlimitedResourceID) } else { setValueOrUUID(d, "zone", t.Zonename, t.Zoneid) }