Skip to content

Commit

Permalink
d/servicecat_constraint: Align data source with resource
Browse files Browse the repository at this point in the history
  • Loading branch information
YakDriver committed Jun 29, 2021
1 parent 563c6e1 commit 9a3b17c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion aws/data_source_aws_servicecatalog_constraint.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,13 @@ func dataSourceAwsServiceCatalogConstraintRead(d *schema.ResourceData, meta inte
return fmt.Errorf("error getting Service Catalog Constraint: empty response")
}

d.Set("accept_language", d.Get("accept_language").(string))
acceptLanguage := d.Get("accept_language").(string)

if acceptLanguage == "" {
acceptLanguage = tfservicecatalog.AcceptLanguageEnglish
}

d.Set("accept_language", acceptLanguage)

d.Set("parameters", output.ConstraintParameters)
d.Set("status", output.Status)
Expand Down

0 comments on commit 9a3b17c

Please sign in to comment.