Skip to content

Conversation

@jerizm
Copy link
Contributor

@jerizm jerizm commented Feb 7, 2019

What did you implement:

Closes #5807

How did you implement it:

5ed78b8 added preservation of white space in a single-quote literal. This caused makeDeepVariable to not replace the variableString properly with the deep:0 syntax because white space was only being removed from the variableContainer.

To fix I just added the removal of white space from variableString as well.

How can we verify it:

I added a new test for the case for it. The sample in #5807 works as well now.

Todos:

  • Write tests
  • Write documentation
  • Fix linting errors
  • Make sure code coverage hasn't dropped
  • Provide verification config / commands / resources
  • Enable "Allow edits from maintainers" for this PR
  • Update the messages below

Is this ready for review?: NO
Is it a breaking change?: NO

Copy link
Contributor

@pmuens pmuens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for jumping in and fixing this right away @jerizm 👍 🥇

I just tested it and it fixes the bug! Merging... :shipit:

@pmuens pmuens merged commit 89be59c into serverless:master Feb 8, 2019
@pmuens pmuens self-assigned this Feb 8, 2019
@pmuens pmuens added this to the 1.38.0 milestone Feb 8, 2019
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.

Default values don't work in variables within ${file}

2 participants