Skip to content

Commit

Permalink
r/vpn_connection_route: Treat route in state=deleted as deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
radeksimko committed Oct 10, 2017
1 parent 0e44ef5 commit 16f5b19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws/resource_aws_vpn_connection_route.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func resourceAwsVpnConnectionRouteRead(d *schema.ResourceData, meta interface{})

var found bool
for _, r := range vpnConnection.Routes {
if *r.DestinationCidrBlock == cidrBlock {
if *r.DestinationCidrBlock == cidrBlock && *r.State != "deleted" {
d.Set("destination_cidr_block", *r.DestinationCidrBlock)
d.Set("vpn_connection_id", *vpnConnection.VpnConnectionId)
found = true
Expand Down

0 comments on commit 16f5b19

Please sign in to comment.