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

Commented out lines are not excluded #13

Open
varnav opened this issue May 11, 2021 · 0 comments
Open

Commented out lines are not excluded #13

varnav opened this issue May 11, 2021 · 0 comments

Comments

@varnav
Copy link

varnav commented May 11, 2021

It will generate variables even if those variables are commented out.

Example:

  # custom_rules {
  #   name      = "IPWhitelist"
  #   priority  = 1
  #   rule_type = "MatchRule"

  #   match_conditions {
  #     match_variables {
  #       variable_name = "RemoteAddr"
  #     }

  #     operator           = "IPMatch"
  #     negation_condition = true
  #     match_values       = var.whitelisted_ips
  #   }

  #   action = "Block"
  # }

Variable definition will be generated for whitelisted_ips - something I'm not expecting.

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

No branches or pull requests

1 participant