Skip to content

Commit

Permalink
Update to Terraform 0.12+ syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Tensho committed Aug 25, 2020
1 parent b4ba8f2 commit e4e2c52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions aws/data_source_aws_workspaces_image_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/workspaces"
"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/terraform"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
)

func TestAccDataSourceAwsWorkspacesImage_basic(t *testing.T) {
Expand Down Expand Up @@ -44,7 +44,7 @@ func testAccDataSourceAwsWorkspacesImageConfig(imageID string) string {
return fmt.Sprintf(`
# TODO: Create aws_workspaces_image resource when API will be provided
data "aws_workspaces_image" "test" {
data aws_workspaces_image test {
image_id = %q
}
`, imageID)
Expand Down
2 changes: 1 addition & 1 deletion website/docs/d/workspaces_image.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Use this data source to get information about a Workspaces image.
## Example Usage

```hcl
data "aws_workspaces_image" "example" {
data aws_workspaces_image example {
image_id = "wsi-ten5h0y19"
}
```
Expand Down

0 comments on commit e4e2c52

Please sign in to comment.