Damans227 commented on issue #32:
URL: 
https://github.com/apache/cloudstack-terraform-provider/issues/32#issuecomment-1107533124

   @kohrar So, in your workaround, how are you always setting `network_id` 
based on the `Associatednetworkid`? 
   
   I tested this issue further, i.e., removed the conditional to set the 
`network_id` as follows and created a new provider binary: 
   
   ```
   d.Set("network_id", ip.Associatednetworkid)
   ```
   Yet, the `network_id` remained empty in the `terraform.tfstate` for me. 
   
   Interestingly, when I use the combination of `zone` and `network_id` in 
`main.tf`, the `network_id` alwyas gets stored in the `terraform.tfstate` 
successfully. 
   
   ```
   resource "cloudstack_ipaddress" "public_ip" { 
       zone = "DC"
       network_id = "b9c953a0-8686-4240-b8a4-43849f7079ff" 
   } 
   ```
   
   


-- 
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