Skip to content

Locales not being created on non-master envs #155

@AsianAttack

Description

@AsianAttack

Version information

  • terraform: 1.5.7
  • terraform provider: 5.11.0

Describe the bug

when applying a new locale to a non-master environment, I see this error:


│ Error: Provider produced inconsistent result after apply

│ When applying changes to
│ module.contentful_locales.contentful_locale.my_locales["fr-FR"],
│ provider "provider["registry.terraform.io/labd/contentful"]" produced an
│ unexpected new value: .environment: was
│ cty.StringVal("my-environment"), but now
│ cty.StringVal("").

│ This is a bug in the provider, which should be reported in the provider's
│ own issue tracker.

To Reproduce

add a new locale to a terraform contentful_locale configuration
configure terraform to apply to a non-master environment
see error as above

Expected behavior

I expect locales to be created properly on non-master environments, and terraform should properly record the environment in which the locales were created in the state.

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions