Skip to content

Commit 37cb4da

Browse files
authored
Fix: zone data source not returning Id (#80)
1 parent 8e1a5dc commit 37cb4da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cloudstack/data_source_cloudstack_zone.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func dataSourceCloudstackZoneRead(d *schema.ResourceData, meta interface{}) erro
8787
}
8888

8989
func zoneDescriptionAttributes(d *schema.ResourceData, zone *cloudstack.Zone) error {
90-
d.SetId(zone.Name)
90+
d.SetId(zone.Id)
9191
d.Set("name", zone.Name)
9292
d.Set("dns1", zone.Dns1)
9393
d.Set("internal_dns1", zone.Internaldns1)

0 commit comments

Comments
 (0)