Skip to content

Commit

Permalink
ruleset: add ruleset and increment action parameters to payload (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobbednarz authored Aug 26, 2021
1 parent d6413d3 commit c14c5ca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cloudflare/resource_cloudflare_ruleset.go
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,10 @@ func buildRulesetRulesFromResource(r interface{}) ([]cloudflare.RulesetRule, err
switch pKey {
case "id":
rule.ActionParameters.ID = pValue.(string)
case "ruleset":
rule.ActionParameters.Ruleset = pValue.(string)
case "increment":
rule.ActionParameters.Increment = pValue.(int)
case "overrides":
categories := []cloudflare.RulesetRuleActionParametersCategories{}
rules := []cloudflare.RulesetRuleActionParametersRules{}
Expand Down

0 comments on commit c14c5ca

Please sign in to comment.