You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I modify the state of a resource in the GUI, this state change is not reflected during the terraform refresh state.
In the GUI I modified the publishers and ports for a private app defined using the Netskope provider. Specifically, I removed port 8080 and publisher nae02np02.
Configuration in the GUI:
When I look at the latest state file after a refresh I still see publisher nae02np02 and port 8080 allowed:
I took a look at the provider code for the privateapps resource and noticed that the Read function resourcePrivateAppsRead isn't performing any lookup against the Netskope REST API to get the private apps. I believe this Read function needs to perform this lookup in order to refresh the state.
When I modify the state of a resource in the GUI, this state change is not reflected during the terraform refresh state.
In the GUI I modified the publishers and ports for a private app defined using the Netskope provider. Specifically, I removed port 8080 and publisher nae02np02.
Configuration in the GUI:
![Screenshot 2024-10-29 at 4 09 40 PM](https://private-user-images.githubusercontent.com/167817443/381333352-10065bcb-d740-4c30-a6cb-f0e91fc102ff.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1NjUyMzIsIm5iZiI6MTczOTU2NDkzMiwicGF0aCI6Ii8xNjc4MTc0NDMvMzgxMzMzMzUyLTEwMDY1YmNiLWQ3NDAtNGMzMC1hNmNiLWYwZTkxZmMxMDJmZi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNFQyMDI4NTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00ZmZhYmNjYzdjNGQ0MDdiZGUzYmJlMDMxMDkyNzg5OTgwNzEyY2NlYWI3OWYxNzkyOWRmYWVlYzlhN2U1MTExJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.JWbrubg0cTvydjhWu-kI7uyXmCTfPdYHpuyhxRdOoHQ)
When I look at the latest state file after a refresh I still see publisher nae02np02 and port 8080 allowed:
I took a look at the provider code for the privateapps resource and noticed that the Read function
resourcePrivateAppsRead
isn't performing any lookup against the Netskope REST API to get the private apps. I believe this Read function needs to perform this lookup in order to refresh the state.https://github.com/netskopeoss/terraform-provider-netskope/blob/main/netskope/resource_privateapps.go#L71
The text was updated successfully, but these errors were encountered: