+
Skip to content

Conversation

hugorut
Copy link
Contributor

@hugorut hugorut commented Aug 5, 2024

Resolves issue where a terraform var file that started with an env name but was preceded by a . would fail to match an env, e.g dev.foo.tfvars. This was because of a typo in the prefix matching logic see here. Changing this logic also exposed an issue when matching hidden file var files (those starting with a .). As the previous typo was allowing for them to be successfully matched. Now that I've fixed the prefix matching logic, i've also changed the clean logic to remove . from the filenames so that the hidden files -> env name matching works as expected.

Resolves issue where a terraform var file that started with an env name but was
preceded by a `.` would fail to match an env, e.g `dev.foo.tfvars`. This was because
of a typo in the prefix matching logic. Changing this logic also exposed an issue when
matching hidden file var files (those starting with a `.`). As the previous typo was
allowing for them to be successfully matched. Now that I've fixed the prefix matching
logic, i've also changed the `clean` logic to remove `.` from the filenames so that
the hidden files -> env name matching works as expected.
@hugorut hugorut self-assigned this Aug 5, 2024
@hugorut hugorut requested a review from aliscott August 5, 2024 09:40
@hugorut hugorut merged commit 1f8f270 into master Aug 5, 2024
@hugorut hugorut deleted the IC-1489 branch August 5, 2024 11:15
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.

2 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载