Skip to content

Commit

Permalink
fixing ruleset_rule_import for catch_all rules (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott McAllister authored Apr 15, 2020
1 parent b5dac3b commit 4adc2c8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pagerduty/resource_pagerduty_ruleset_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -623,8 +623,9 @@ func resourcePagerDutyRulesetRuleRead(d *schema.ResourceData, meta interface{})
}
return resource.NonRetryableError(err)
} else if rule != nil {
d.Set("conditions", flattenConditions(rule.Conditions))

if rule.Conditions != nil {
d.Set("conditions", flattenConditions(rule.Conditions))
}
if rule.Actions != nil {
d.Set("actions", flattenActions(rule.Actions))
}
Expand Down

0 comments on commit 4adc2c8

Please sign in to comment.