We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When a configuration contains a format verb as a parameter name, it is replaced with a quoted string, which fails HCL parsing.
For example, in https://github.com/hashicorp/terraform-provider-aws/blob/38319aa13aea65d3e946450c1f881d8fef12e734/aws/resource_aws_efs_file_system_test.go#L832-L836
resource "aws_efs_file_system" "test" { lifecycle_policy { %s = %q } }
The line %s = %q should replace the leading bare string with something compatible with HCL parsing
%s = %q
The line %s = %q is replaced with "@@_@@ TFMT:%s:TFMT @@_@@" = "@@_@@ TFMT:%q:TFMT @@_@@", and terrafmt fmt fails
"@@_@@ TFMT:%s:TFMT @@_@@" = "@@_@@ TFMT:%q:TFMT @@_@@"
terrafmt fmt
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
When a configuration contains a format verb as a parameter name, it is replaced with a quoted string, which fails HCL parsing.
For example, in https://github.com/hashicorp/terraform-provider-aws/blob/38319aa13aea65d3e946450c1f881d8fef12e734/aws/resource_aws_efs_file_system_test.go#L832-L836
Expected Result
The line
%s = %q
should replace the leading bare string with something compatible with HCL parsingActual Result
The line
%s = %q
is replaced with"@@_@@ TFMT:%s:TFMT @@_@@" = "@@_@@ TFMT:%q:TFMT @@_@@"
, andterrafmt fmt
failsThe text was updated successfully, but these errors were encountered: