Skip to content

Commit b523259

Browse files
fix(block_fastly_service_settings): fix detection of falsey value for stale_if_error field
1 parent 8c7d810 commit b523259

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fastly/block_fastly_service_settings.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func (h *SettingsServiceAttributeHandler) Process(_ context.Context, d *schema.R
3333
opts.DefaultHost = gofastly.ToPointer(attr.(string))
3434
}
3535

36-
if attr, ok := d.GetOk("stale_if_error"); ok {
36+
if attr, ok := d.GetOkExists("stale_if_error"); ok {
3737
opts.StaleIfError = gofastly.ToPointer(attr.(bool))
3838
}
3939

0 commit comments

Comments
 (0)