Check for proper empty response instead of UnlimitedResourceID

This commit is contained in:
Hany Fahim 2015-09-28 13:31:08 -04:00
parent 7852248f0e
commit a9b86636c8
1 changed files with 1 additions and 1 deletions

View File

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