You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
...
snippet {
name = "my_snippet"
content = <-EOF
... lots of suff ...
- # Old Line+ # Changed Line
EOF
}
Actual Behavior
...
- snippet {- name = "my_snippet"- type = "init"- content = <-EOF- ... lots of suff ...- EOF- }+ snippet {+ name = "my_snippet"+ type = "init"+ content = <-EOF+ ... lots of suff ...+ # Changed Line+ EOF+ }
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform plan/apply
make a change to snippet content
terraform plan — see the "wrong" diff (more verbose than necessary)
Important Factoids (optional)
I'm guessing other types of snippets (dynamic) and also raw VCL should have the same issue
Is that because of the use of Type.Set in the resource schema? Would it be possible to use something like Type.Map and eventually use the name of the snippet as a map (I'm guessing if the name changes it is okay to show it as a new snippet)
The text was updated successfully, but these errors were encountered:
marceloboeira
changed the title
VCL Snippets diff optimal display
fastly_service_vcl Overly verbose Snippets diff
Jan 10, 2024
Terraform Version
Affected Fastly Terraform Resource(s)
Please list the affected resources, for example:
fastly_service_vcl
Terraform Configuration Files
Expected Behavior
Actual Behavior
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform plan/apply
terraform plan
— see the "wrong" diff (more verbose than necessary)Important Factoids (optional)
Type.Set
in the resource schema? Would it be possible to use something likeType.Map
and eventually use the name of the snippet as a map (I'm guessing if the name changes it is okay to show it as a new snippet)The text was updated successfully, but these errors were encountered: