mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
commit after running make fmt
This commit is contained in:
parent
91f6f2a143
commit
04c2d40e57
@ -102,10 +102,10 @@ func resourceAwsNatGatewayRead(d *schema.ResourceData, meta interface{}) error {
|
||||
return err
|
||||
}
|
||||
|
||||
status := map[string]bool {
|
||||
"deleted": true,
|
||||
status := map[string]bool{
|
||||
"deleted": true,
|
||||
"deleting": true,
|
||||
"failed": true,
|
||||
"failed": true,
|
||||
}
|
||||
|
||||
if ngRaw == nil || status[strings.ToLower(state)] {
|
||||
|
@ -43,10 +43,10 @@ func testAccCheckNatGatewayDestroy(s *terraform.State) error {
|
||||
resp, err := conn.DescribeNatGateways(&ec2.DescribeNatGatewaysInput{
|
||||
NatGatewayIds: []*string{aws.String(rs.Primary.ID)},
|
||||
})
|
||||
status := map[string]bool {
|
||||
"deleted": false,
|
||||
status := map[string]bool{
|
||||
"deleted": false,
|
||||
"deleting": false,
|
||||
"failed": false,
|
||||
"failed": false,
|
||||
}
|
||||
if err == nil {
|
||||
if len(resp.NatGateways) > 0 && status[strings.ToLower(*resp.NatGateways[0].State)] {
|
||||
|
Loading…
Reference in New Issue
Block a user