This is an automated email from the ASF dual-hosted git repository.
rohit pushed a commit to branch main
in repository
https://gitbox.apache.org/repos/asf/cloudstack-terraform-provider.git
The following commit(s) were added to refs/heads/main by this push:
new 37cb4da Fix: zone data source not returning Id (#80)
37cb4da is described below
commit 37cb4da02aed90b8555d5890b74d12cbe1abf731
Author: CodeBleu <[email protected]>
AuthorDate: Thu Feb 15 05:47:36 2024 -0500
Fix: zone data source not returning Id (#80)
---
cloudstack/data_source_cloudstack_zone.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cloudstack/data_source_cloudstack_zone.go
b/cloudstack/data_source_cloudstack_zone.go
index 39c8317..296c887 100644
--- a/cloudstack/data_source_cloudstack_zone.go
+++ b/cloudstack/data_source_cloudstack_zone.go
@@ -87,7 +87,7 @@ func dataSourceCloudstackZoneRead(d *schema.ResourceData,
meta interface{}) erro
}
func zoneDescriptionAttributes(d *schema.ResourceData, zone *cloudstack.Zone)
error {
- d.SetId(zone.Name)
+ d.SetId(zone.Id)
d.Set("name", zone.Name)
d.Set("dns1", zone.Dns1)
d.Set("internal_dns1", zone.Internaldns1)