Check for errors when setting schedule_layer
This commit is contained in:
parent
35312f0066
commit
0951adab3b
|
@ -145,7 +145,10 @@ func resourcePagerDutyScheduleRead(d *schema.ResourceData, meta interface{}) err
|
|||
|
||||
d.Set("name", s.Name)
|
||||
d.Set("description", s.Description)
|
||||
d.Set("schedule_layer", flattenLayers(s.ScheduleLayers))
|
||||
|
||||
if err := d.Set("schedule_layer", flattenLayers(s.ScheduleLayers)); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue