Skip to content

Commit

Permalink
Merge pull request #1079 from cloudflare/expose-default-mode-for-waf-…
Browse files Browse the repository at this point in the history
…rules

datasource/cloudflare_waf_rule: expose `default_mode`
  • Loading branch information
jacobbednarz authored Jun 28, 2021
2 parents 6db4ff3 + 07ba62f commit 45494cd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cloudflare/data_source_waf_rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ func dataSourceCloudflareWAFRules() *schema.Resource {
Type: schema.TypeString,
},
},
"default_mode": {
Type: schema.TypeString,
Optional: true,
},
},
},
},
Expand Down Expand Up @@ -155,6 +159,7 @@ func dataSourceCloudflareWAFRulesRead(d *schema.ResourceData, meta interface{})
"group_name": rule.Group.Name,
"package_id": pkg.ID,
"allowed_modes": rule.AllowedModes,
"default_mode": rule.DefaultMode,
})
ruleIds = append(ruleIds, rule.ID)
}
Expand Down

0 comments on commit 45494cd

Please sign in to comment.