Skip to content

Commit

Permalink
r/aws_fsx_ontap_storage_virtual_machine: 'subtype' is always 'DEFAULT'.
Browse files Browse the repository at this point in the history
  • Loading branch information
ewbankkit committed Nov 30, 2022
1 parent 2b97bd6 commit a0e2616
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/28085.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:note
resource/aws_fsx_ontap_storage_virtual_machine: The `subtype` attribute will always have the value `"DEFAULT"`
```
2 changes: 1 addition & 1 deletion internal/service/fsx/ontap_storage_virtual_machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ func resourceOntapStorageVirtualMachineRead(d *schema.ResourceData, meta interfa
d.Set("svm_admin_password", d.Get("svm_admin_password").(string))
// Subtype removed in AWS SDK for Go v1.44.147.
// d.Set("subtype", storageVirtualMachine.Subtype)
d.Set("subtype", nil)
d.Set("subtype", "DEFAULT")
d.Set("uuid", storageVirtualMachine.UUID)

if err := d.Set("active_directory_configuration", flattenOntapSvmActiveDirectoryConfiguration(d, storageVirtualMachine.ActiveDirectoryConfiguration)); err != nil {
Expand Down
1 change: 1 addition & 0 deletions internal/service/fsx/ontap_storage_virtual_machine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ func TestAccFSxOntapStorageVirtualMachine_basic(t *testing.T) {
resource.TestCheckResourceAttr(resourceName, "name", rName),
// Subtype removed in AWS SDK for Go v1.44.147.
//resource.TestCheckResourceAttr(resourceName, "subtype", fsx.StorageVirtualMachineSubtypeDefault),
resource.TestCheckResourceAttr(resourceName, "subtype", "DEFAULT"),
resource.TestCheckResourceAttr(resourceName, "tags.%", "0"),
resource.TestCheckResourceAttrSet(resourceName, "uuid"),
),
Expand Down

0 comments on commit a0e2616

Please sign in to comment.