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

user_ldap name seems to be required not optional

Open jzamanski-pm opened this issue 2 years ago • 2 comments

https://github.com/fortinetdev/terraform-provider-fortios/blob/cd5ed5417300f3bb658b89886ca7dde3f60685c7/fortios/resource_user_ldap.go#L42C4-L42C24

when creating a new user_ldap resource without providing an optional name i'm getting a 500 error providing the name field fixed it

name is not being sent in the HTTP POST when omitted so if it's supposed to be inferred from the terraform resource name or something that doesn't seem to be working right

jzamanski-pm avatar Oct 13 '23 21:10 jzamanski-pm

Hi @jzamanski-pm ,

Thank you for raising this issue, reproduced on fortios 7.2.5, name should be a required argument, I have reported it the development team for advice.

Thanks, Maxx

MaxxLiu22 avatar Oct 16 '23 17:10 MaxxLiu22

Hi Maxx, The same appears to be true for fortios_system_linkmonitor. Thanks, Jeff

jzamanski-pm avatar Oct 18 '23 20:10 jzamanski-pm