Skip to content

Commit e9480ae

Browse files
committed
removed headers from notification on notifyListToResourceData
1 parent e00929c commit e9480ae

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

ns1/resource_notifylist.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ func notifyListToResourceData(d *schema.ResourceData, nl *monitor.NotifyList) er
5252
ni := make(map[string]interface{})
5353
ni["type"] = n.Type
5454
if n.Config != nil {
55-
ni["config"] = n.Config
55+
configWithoutHeaders := n.Config
56+
delete(configWithoutHeaders, "headers")
57+
ni["config"] = configWithoutHeaders
5658
}
5759
notifications[i] = ni
5860
}

0 commit comments

Comments
 (0)