Skip to content
This repository was archived by the owner on Nov 14, 2020. It is now read-only.

Correctly save role with quoted search path#200

Open
lovromazgon wants to merge 1 commit into
hashicorp:masterfrom
lovromazgon:searchpath-with-hyphen
Open

Correctly save role with quoted search path#200
lovromazgon wants to merge 1 commit into
hashicorp:masterfrom
lovromazgon:searchpath-with-hyphen

Conversation

@lovromazgon
Copy link
Copy Markdown

Issue

When defining a search path in a PostgreSQL role which contains a hyphen it is saved as a quoted string in the DB. Once it is retrieved from the database the provider saves the quoted search path in the terraform state. Next time the changes are applied this is detected as a change that will be applied, although it actually is not a change.

Solution

When reading the search path from PostgreSQL we have to trim the quotes.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant