Skip to content

Commit 10b2154

Browse files
committed
Fix broken test
1 parent 7a94502 commit 10b2154

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

sumologic/resource_sumologic_slo.go

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ package sumologic
22

33
import (
44
"fmt"
5-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
6-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"
75
"log"
86
"strings"
7+
8+
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
9+
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"
910
)
1011

1112
const fieldNameWindowBasedEvaluation = `window_based_evaluation`
@@ -202,6 +203,11 @@ func resourceSumologicSLO() *schema.Resource {
202203
Optional: true,
203204
Computed: true,
204205
},
206+
"content_type": {
207+
Type: schema.TypeString,
208+
Optional: true,
209+
Computed: true,
210+
},
205211
"is_system": {
206212
Type: schema.TypeBool,
207213
Optional: true,
@@ -385,7 +391,7 @@ func resourceSLORead(d *schema.ResourceData, meta interface{}) error {
385391
return fmt.Errorf("error setting compliance fields for resource %s: %s", d.Id(), err)
386392
}
387393

388-
flatIndicator, err := flattenSLOIndicator(slo.Indicator)
394+
flatIndicator, _ := flattenSLOIndicator(slo.Indicator)
389395

390396
if err := d.Set("indicator", []interface{}{flatIndicator}); err != nil {
391397
return fmt.Errorf("error setting indicator field for resource %s: %s", d.Id(), err)

0 commit comments

Comments
 (0)