Skip to content

Commented out lines are not excluded #13

@varnav

Description

@varnav

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions