Skip to content

Commit 0f8c22f

Browse files
authored
Merge pull request #75 from Longsight/build
Build
2 parents 1976e2d + d0c2ccb commit 0f8c22f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

cloudstack/data_source_cloudstack_zone.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,10 @@ func zoneDescriptionAttributes(d *schema.ResourceData, zone *cloudstack.Zone) er
9595
d.Set("name", zone.Name)
9696
d.Set("dns1", zone.Dns1)
9797
d.Set("internal_dns1", zone.Internaldns1)
98-
d.Set("network_domain", zone.Domainname)
98+
domain, ok := zone.Resourcedetails["guest.domain.suffix"]
99+
if ok {
100+
d.Set("network_domain", domain)
101+
}
99102
d.Set("network_type", zone.Networktype)
100103

101104
return nil

0 commit comments

Comments
 (0)