Update conditional to set UnlimitedResourceID for Zonename as well as Zoneid

This commit is contained in:
Hany Fahim 2015-09-30 14:03:14 -04:00
parent a9b86636c8
commit 1e90f986f2
1 changed files with 1 additions and 1 deletions

View File

@ -239,7 +239,7 @@ func resourceCloudStackTemplateRead(d *schema.ResourceData, meta interface{}) er
setValueOrUUID(d, "project", t.Project, t.Projectid) setValueOrUUID(d, "project", t.Project, t.Projectid)
if t.Zoneid == "" { if t.Zoneid == "" {
setValueOrUUID(d, "zone", t.Zonename, UnlimitedResourceID) setValueOrUUID(d, "zone", UnlimitedResourceID, UnlimitedResourceID)
} else { } else {
setValueOrUUID(d, "zone", t.Zonename, t.Zoneid) setValueOrUUID(d, "zone", t.Zonename, t.Zoneid)
} }