Skip to content

Commit e4e2c52

Browse files
committed
Update to Terraform 0.12+ syntax
1 parent b4ba8f2 commit e4e2c52

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

aws/data_source_aws_workspaces_image_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77

88
"github.com/aws/aws-sdk-go/aws"
99
"github.com/aws/aws-sdk-go/service/workspaces"
10-
"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
11-
"github.com/hashicorp/terraform-plugin-sdk/terraform"
10+
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
11+
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
1212
)
1313

1414
func TestAccDataSourceAwsWorkspacesImage_basic(t *testing.T) {
@@ -44,7 +44,7 @@ func testAccDataSourceAwsWorkspacesImageConfig(imageID string) string {
4444
return fmt.Sprintf(`
4545
# TODO: Create aws_workspaces_image resource when API will be provided
4646
47-
data "aws_workspaces_image" "test" {
47+
data aws_workspaces_image test {
4848
image_id = %q
4949
}
5050
`, imageID)

website/docs/d/workspaces_image.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Use this data source to get information about a Workspaces image.
1313
## Example Usage
1414

1515
```hcl
16-
data "aws_workspaces_image" "example" {
16+
data aws_workspaces_image example {
1717
image_id = "wsi-ten5h0y19"
1818
}
1919
```

0 commit comments

Comments
 (0)