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
Describe the bug
Yor is not able to deal with statements like { for k, v in local.tags : k => v if k != "environment" } which causes problems in our pipeline. It creates wrong Terraform code:
resource "aws_security_group" "a" {
name = "b"
tags = { for k, v in local.tags : k => v if k != "environment"
yor_name = "a"
yor_trace = "c3bec54a-a976-4886-8a03-792318011ed0"
}
}
To Reproduce
Use the following Terraform file
locals {
tags = {a: "b", c: "d"}
}
resource "aws_security_group" "a" {
name = "b"
tags = { for k, v in local.tags : k => v if k != "environment" }
}
Run yor tags -d .
Check the file system. There is still a temporary file which shows incorrect Terraform code.
Expected behavior
there should be no temp file left
the source code should show the correct tags
Screenshots
none
Desktop (please complete the following information):
OS: Linux, Windows
Yor Version: 0.1.191
Additional context
None
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Describe the bug
Yor is not able to deal with statements like
{ for k, v in local.tags : k => v if k != "environment" }
which causes problems in our pipeline. It creates wrong Terraform code:To Reproduce
yor tags -d .
Expected behavior
Screenshots
none
Desktop (please complete the following information):
Additional context
None
The text was updated successfully, but these errors were encountered: