Skip to content

Fix inconsistency issue with policy rule description - #154

Open
emrcbrn wants to merge 3 commits into
netbirdio:mainfrom
emrcbrn:fix/policy-rule-description
Open

Fix inconsistency issue with policy rule description#154
emrcbrn wants to merge 3 commits into
netbirdio:mainfrom
emrcbrn:fix/policy-rule-description

Conversation

@emrcbrn

@emrcbrn emrcbrn commented May 6, 2026

Copy link
Copy Markdown

Same root cause as #45 / #50, applied to the nested policy rule description attribute on netbird_policy.

When description is omitted on a rule, the plan records it as null but the API returns "", producing a "Provider produced inconsistent result after apply" error.

Mirrors the fix from #50 on netbird_network: mark the attribute Computed and give it a stringdefault.StaticString("") default so plan and applied state agree. The top-level netbird_policy.description is already Computed (with a UseStateForUnknown plan modifier) so it's not affected by the same bug; this PR only touches the nested rule attribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant