Skip to content

Commit

Permalink
Merge pull request #1848 from terraform-providers/b-vpn-connection-ro…
Browse files Browse the repository at this point in the history
…ute-deleted

r/vpn_connection_route: Treat route in state=deleted as deleted
  • Loading branch information
radeksimko authored Oct 10, 2017
2 parents e96b67e + 16f5b19 commit 2261f5b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
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
File renamed without changes.

0 comments on commit 2261f5b

Please sign in to comment.