Skip to content

Commit 2bd3b5e

Browse files
committed
feat(slo): bugfix for int?
1 parent 3a2bf0e commit 2bd3b5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/resources/slo/resource_slo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ func packAlerting(tfAlerting map[string]interface{}) slo.SloV00Alerting {
568568
lf := failures.([]interface{})
569569
if len(lf) > 0 {
570570
lf2 := lf[0].(map[string]interface{})
571-
tfAdvancedOptions.SetMinFailures(int64(lf2["min_failures"].(float64)))
571+
tfAdvancedOptions.SetMinFailures(int64(lf2["min_failures"].(int)))
572572
}
573573
}
574574

0 commit comments

Comments
 (0)