CheckPointSW / terraform-provider-checkpoint

Terraform provider for Check Point
https://www.terraform.io/docs/providers/checkpoint/
Mozilla Public License 2.0
28 stars 40 forks source link

readManagementServiceTcp not setting value for color #62

Closed Sreerag74031 closed 3 years ago

Sreerag74031 commented 3 years ago

While trying to import tcp sertvice color is not getting imported to terraform state, this is resulting in terraform plan output object changes.

Adding below code in readManagementServiceTcp may fix the issue

if v := serviceTcp["color"]; v != nil { _ = d.Set("color", v) }

chkp-royl commented 3 years ago

Hi @Sreerag74031,

Thanks for reporting this issue. Color field is missing from resource read function and as a result it's not part from resource state. We will fix that in the next version of Check Point provider. Meanwhile, you can add your fix solution and build provider locally.

Thanks, Roy

Sreerag74031 commented 3 years ago

@chkp-royl i will try to build it locally; however for another open issue #64 anyway i need to edit terraform state file i may update the color field to workaround this.

chkp-alonshev commented 3 years ago

Thank you for submitting this issue, We fixed this issue on our provider's new version, V1.5.0, This version is now available for use.