Commit 5f4f2a4
committed
Fix: Only set description field when not empty to avoid Terraform validation errors
The description field was being set unconditionally in resourceRoleRead,
which caused Terraform to reject the plan when the description was empty
because it was trying to set a non-computed attribute to an empty string.
This fix ensures that the description field is only set when it contains
actual content, preventing the 'Provider produced invalid plan' error
for elasticstack_kibana_security_role resources without descriptions.
Fixes: elastic#11861 parent 9754e6a commit 5f4f2a4
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
353 | | - | |
354 | | - | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
355 | 358 | | |
356 | 359 | | |
357 | 360 | | |
| |||
0 commit comments