mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-08 23:23:59 -06:00
providers/aws: response value for DescribeVpcAttribute needs to be
.Value
This commit is contained in:
parent
1db1bf6639
commit
0ef1b3b84a
@ -156,7 +156,7 @@ func resourceAwsVpcRead(d *schema.ResourceData, meta interface{}) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
d.Set("enable_dns_support", *resp.EnableDnsSupport)
|
||||
d.Set("enable_dns_support", *resp.EnableDnsSupport.Value)
|
||||
attribute = "enableDnsHostnames"
|
||||
DescribeAttrOpts = &ec2.DescribeVpcAttributeInput{
|
||||
Attribute: &attribute,
|
||||
@ -166,7 +166,7 @@ func resourceAwsVpcRead(d *schema.ResourceData, meta interface{}) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
d.Set("enable_dns_hostnames", *resp.EnableDnsHostnames)
|
||||
d.Set("enable_dns_hostnames", *resp.EnableDnsHostnames.Value)
|
||||
|
||||
DescribeClassiclinkOpts := &ec2.DescribeVpcClassicLinkInput{
|
||||
VpcIds: []*string{&vpcid},
|
||||
|
@ -206,6 +206,7 @@ func Test(t TestT, c TestCase) {
|
||||
"[WARN] Test: Running ID-only refresh check on %s",
|
||||
idRefreshCheck.Primary.ID)
|
||||
if err := testIDOnlyRefresh(opts, step, idRefreshCheck); err != nil {
|
||||
log.Printf("[ERROR] Test: ID-only test failed: %s", err)
|
||||
t.Error(fmt.Sprintf(
|
||||
"ID-Only refresh test failure: %s", err))
|
||||
break
|
||||
|
Loading…
Reference in New Issue
Block a user