From 4adc2c829c67c527322e9ef592ac2b7264848195 Mon Sep 17 00:00:00 2001 From: Scott McAllister Date: Tue, 14 Apr 2020 22:45:00 -0700 Subject: [PATCH] fixing ruleset_rule_import for catch_all rules (#205) --- pagerduty/resource_pagerduty_ruleset_rule.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pagerduty/resource_pagerduty_ruleset_rule.go b/pagerduty/resource_pagerduty_ruleset_rule.go index 89d47229e..6fc8d5f47 100644 --- a/pagerduty/resource_pagerduty_ruleset_rule.go +++ b/pagerduty/resource_pagerduty_ruleset_rule.go @@ -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)) }