From 6d2e841dbea4ab7aec50e18b65d0c8071a247e88 Mon Sep 17 00:00:00 2001 From: Angie Pinilla Date: Fri, 15 May 2020 00:54:26 -0400 Subject: [PATCH] enable linter --- aws/resource_aws_fsx_lustre_file_system.go | 4 ++-- aws/resource_aws_fsx_windows_file_system.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/aws/resource_aws_fsx_lustre_file_system.go b/aws/resource_aws_fsx_lustre_file_system.go index 7ab2b555628..619b24dd1ba 100644 --- a/aws/resource_aws_fsx_lustre_file_system.go +++ b/aws/resource_aws_fsx_lustre_file_system.go @@ -87,7 +87,7 @@ func resourceAwsFsxLustreFileSystem() *schema.Resource { ValidateFunc: validation.IntAtLeast(1200), }, "subnet_ids": { - Type: schema.TypeSet, + Type: schema.TypeList, Required: true, ForceNew: true, MinItems: 1, @@ -119,7 +119,7 @@ func resourceAwsFsxLustreFileSystemCreate(d *schema.ResourceData, meta interface ClientRequestToken: aws.String(resource.UniqueId()), FileSystemType: aws.String(fsx.FileSystemTypeLustre), StorageCapacity: aws.Int64(int64(d.Get("storage_capacity").(int))), - SubnetIds: expandStringSet(d.Get("subnet_ids").(*schema.Set)), + SubnetIds: expandStringList(d.Get("subnet_ids").([]interface{})), } if v, ok := d.GetOk("export_path"); ok { diff --git a/aws/resource_aws_fsx_windows_file_system.go b/aws/resource_aws_fsx_windows_file_system.go index c7d3c8485c9..3c63d346747 100644 --- a/aws/resource_aws_fsx_windows_file_system.go +++ b/aws/resource_aws_fsx_windows_file_system.go @@ -147,7 +147,7 @@ func resourceAwsFsxWindowsFileSystem() *schema.Resource { ValidateFunc: validation.IntBetween(32, 65536), }, "subnet_ids": { - Type: schema.TypeSet, + Type: schema.TypeList, Required: true, ForceNew: true, MinItems: 1, @@ -185,7 +185,7 @@ func resourceAwsFsxWindowsFileSystemCreate(d *schema.ResourceData, meta interfac ClientRequestToken: aws.String(resource.UniqueId()), FileSystemType: aws.String(fsx.FileSystemTypeWindows), StorageCapacity: aws.Int64(int64(d.Get("storage_capacity").(int))), - SubnetIds: expandStringSet(d.Get("subnet_ids").(*schema.Set)), + SubnetIds: expandStringList(d.Get("subnet_ids").([]interface{})), WindowsConfiguration: &fsx.CreateFileSystemWindowsConfiguration{ AutomaticBackupRetentionDays: aws.Int64(int64(d.Get("automatic_backup_retention_days").(int))), CopyTagsToBackups: aws.Bool(d.Get("copy_tags_to_backups").(bool)),