mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
providers/aws/vpn_connection id-only refresh
This commit is contained in:
parent
d14b4872d7
commit
9e65c30707
@ -316,10 +316,8 @@ func resourceAwsVpnConnectionRead(d *schema.ResourceData, meta interface{}) erro
|
||||
if err := d.Set("vgw_telemetry", telemetryToMapList(vpnConnection.VgwTelemetry)); err != nil {
|
||||
return err
|
||||
}
|
||||
if vpnConnection.Routes != nil {
|
||||
if err := d.Set("routes", routesToMapList(vpnConnection.Routes)); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := d.Set("routes", routesToMapList(vpnConnection.Routes)); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
|
@ -14,9 +14,10 @@ import (
|
||||
|
||||
func TestAccAWSVpnConnection_basic(t *testing.T) {
|
||||
resource.Test(t, resource.TestCase{
|
||||
PreCheck: func() { testAccPreCheck(t) },
|
||||
Providers: testAccProviders,
|
||||
CheckDestroy: testAccAwsVpnConnectionDestroy,
|
||||
PreCheck: func() { testAccPreCheck(t) },
|
||||
IDRefreshName: "aws_vpn_connection.foo",
|
||||
Providers: testAccProviders,
|
||||
CheckDestroy: testAccAwsVpnConnectionDestroy,
|
||||
Steps: []resource.TestStep{
|
||||
resource.TestStep{
|
||||
Config: testAccAwsVpnConnectionConfig,
|
||||
|
Loading…
Reference in New Issue
Block a user