Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pass value through untouch when expand method not defined #185

Merged
merged 1 commit into from
Jan 4, 2022

Conversation

tongueroo
Copy link
Contributor

This is a 🙋‍♂️ feature or enhancement.

  • I've added tests (if it's a bug, feature or enhancement)
  • I've adjusted the documentation (if it's a feature or enhancement)
  • The test suite passes (run bundle exec rspec to verify this)

Summary

When an expansion method is not defined in the provider plugin, instead of raising an error, it'll pass the value straight through. IE:

"test-:ENV-:ENV2-example"

Results in:

"test-dev-:ENV2-example"

Since :ENV2 is not defined in the provider plugins.

Context

Would had helped with this:

How to Test

Use a test string like in ERB somewhere.

# <%= expansion("test-dev-:ENV2-example") %>

And run

terraspace build

Version Changes

Patch

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