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

Fix: New lines in modified attributes #76

Merged
merged 11 commits into from
Jan 17, 2021
Merged

Fix: New lines in modified attributes #76

merged 11 commits into from
Jan 17, 2021

Conversation

avnerenv0
Copy link
Contributor

@avnerenv0 avnerenv0 commented Jan 14, 2021

Fixes #71

Instead of inserting our modified tags as a string,
We will pass them through HCL Parse and insert them as raw tokens.

That way newlines are inserted correctly instead of as \n

  • A lot of test files were changed here because the output is slightly different - it's just whitespace changes - so reviewing with whitespaces off is recommended

@avnerenv0 avnerenv0 self-assigned this Jan 14, 2021
@avnerenv0 avnerenv0 requested a review from a team January 14, 2021 13:49
@avnerenv0
Copy link
Contributor Author

default = {}
}

resource "aws_s3_bucket" "example" {
Copy link
Contributor

Choose a reason for hiding this comment

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

@avnerenv0 is there any special reason why tf12 scenario/tests are different than tf11? 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

just because the interpolation syntax "${...}" I wanted to make sure it works as expected

Copy link
Contributor

@yaronya yaronya left a comment

Choose a reason for hiding this comment

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

🔥

@avnerenv0 avnerenv0 merged commit 1a7a7d1 into master Jan 17, 2021
@avnerenv0 avnerenv0 deleted the fix-merge-in-merge branch January 17, 2021 07:41
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.

Using newlines inside a tags attribute produces malformed HCL syntax
2 participants