touljaboy commented on code in PR #362:
URL: 
https://github.com/apache/cloudstack-terraform-provider/pull/362#discussion_r4754108371


##########
cloudstack/resource_cloudstack_network.go:
##########
@@ -454,6 +505,13 @@ func resourceCloudStackNetworkRead(d *schema.ResourceData, 
meta interface{}) err
        }
        d.Set("acl_id", n.Aclid)
 
+       if _, ok := d.GetOk("account"); ok {
+               d.Set("account", n.Account)
+       }
+       if _, ok := d.GetOk("domain_id"); ok {
+               d.Set("domain_id", n.Domainid)

Review Comment:
   Fixed in 2fdaab4 - account/domain_id are now always set from the API 
response. Also added setProjectid(p, cs, d) to the account-scoped read branch 
so project-scoped lookups keep working once these fields get auto-populated on 
a later refresh.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to