Closed SMBurrows closed 3 years ago
Hi @SMBurrows ,
Thank you for reporting this bug.
It looks like validation error that if action is 'Apply Layer' the parameter inline-layer shouldn't be null in the API call.
We will fix that in the next version of provider. If it's urgent, I suggest to add the following code to update access rule function where we handle "action" parameter (line 873) and build provider locally:
if val, ok := d.GetOk("inline_layer"); ok { accessRule["inline-layer"] = val.(string) }
Thanks, Roy
Hi @SMBurrows ,
We released version v1.4.0 that includes fix for this bug. Please upgrade the provider and let us know if this issue still happen to you.
Thanks, Roy
Using the following configuration:
Running
terraform apply
and publishing in Check Point will be successful the first time.Making a change to the config will result in the
terraform plan
displaying that it will change the following:And running
apply
again will display a 400 error saying that the inline-layer was not defined even though it is still in the HCL:I am assuming that because the state changes to "Inner Layer" the resource does not pass in the inline-layer data to the API call?
Tested on: Windows 10, MacOSX 11.1 Terraform v13.5 Check Point Provider v1.3