You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by "sudo87 (via GitHub)" <gi...@apache.org> on 2026/08/18 05:26:35 UTC

Re: [PR] Add terraform import support for several cloudstack resources [cloudstack-terraform-provider]

sudo87 commented on code in PR #305:
URL: https://github.com/apache/cloudstack-terraform-provider/pull/305#discussion_r3801261974


##########
cloudstack/resource_cloudstack_host.go:
##########
@@ -224,12 +233,13 @@ func resourceCloudStackHostRead(d *schema.ResourceData, meta interface{}) error
 	d.SetId(h.Id)
 
 	fields := map[string]interface{}{
-		"hypervisor":     h.Hypervisor,
-		"pod_id":         h.Podid,
-		"zone_id":        h.Zoneid,
-		"state":          h.State,
-		"resource_state": h.Resourcestate,
-		"name":           h.Name,
+		"hypervisor":       h.Hypervisor,
+		"pod_id":           h.Podid,
+		"zone_id":          h.Zoneid,
+		"state":            h.State,
+		"resource_state":   h.Resourcestate,
+		"allocation_state": h.Resourcestate,

Review Comment:
   
   "resource_state" and "allocation_state" both are set as h.Resourcestate
   
   confirm if this is correct?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org