terraform-provider-fortios icon indicating copy to clipboard operation
terraform-provider-fortios copied to clipboard

Can't unset interface allowaccess attribute

Open jzamanski-pm opened this issue 1 year ago • 1 comments

HI, I'm unable to unset the "allowaccess" field of an interface via terraform. Passing an empty string or null leaves it unchanged. Is this expected?

jzamanski-pm avatar May 16 '24 21:05 jzamanski-pm

Hi @jzamanski-pm ,

Thank you for raising this issue. I can reproduce it. I found that the API sent null to unset allowaccess, but Terraform regards null as an empty value and ignores it. I have reported this to the development team for a fix. Sorry for any inconvenience. Thanks,

Maxx

MaxxLiu22 avatar May 17 '24 22:05 MaxxLiu22

Hi @jzamanski-pm

I wanted to let you know that this issue has been resolved in Terraform FOS 1.21.0. Starting with this version, Terraform now supports the unset function if the argument is not set. Whenever you have a chance, please upgrade to this version, and feel free to reach out if you have any further questions.

Thank you, Maxx

MaxxLiu22 avatar Sep 16 '24 17:09 MaxxLiu22

I will proceed with closing this case. However, feel free to reopen it if you continue to experience this issue.

MaxxLiu22 avatar Oct 24 '24 01:10 MaxxLiu22