Skip to content

Commit

Permalink
Use NormalizedOperationMethod to catch ClientErrors so the waiter can…
Browse files Browse the repository at this point in the history
… handle them properly (ansible#37356)

(cherry picked from commit c9e8aca)
  • Loading branch information
ryansb authored and s-hertel committed Apr 27, 2018
1 parent eb18dd4 commit 3d6b103
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/ansible/module_utils/aws/waiters.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"matcher": "error",
"expected": "InvalidRouteTableID.NotFound",
"state": "retry"
}
},
]
}
}
Expand All @@ -40,7 +40,9 @@ def model_for(name):
('EC2', 'route_table_exists'): lambda ec2: core_waiter.Waiter(
'route_table_exists',
model_for('RouteTableExists'),
ec2.describe_route_tables)
core_waiter.NormalizedOperationMethod(
ec2.describe_route_tables
))
}


Expand Down

0 comments on commit 3d6b103

Please sign in to comment.