mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Use NormalizedOperationMethod to catch ClientErrors so the waiter can handle them properly (#37356)
This commit is contained in:
parent
123694397a
commit
93946ba627
1 changed files with 4 additions and 2 deletions
|
@ -24,7 +24,7 @@ ec2_data = {
|
||||||
"matcher": "error",
|
"matcher": "error",
|
||||||
"expected": "InvalidRouteTableID.NotFound",
|
"expected": "InvalidRouteTableID.NotFound",
|
||||||
"state": "retry"
|
"state": "retry"
|
||||||
}
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -40,7 +40,9 @@ waiters_by_name = {
|
||||||
('EC2', 'route_table_exists'): lambda ec2: core_waiter.Waiter(
|
('EC2', 'route_table_exists'): lambda ec2: core_waiter.Waiter(
|
||||||
'route_table_exists',
|
'route_table_exists',
|
||||||
model_for('RouteTableExists'),
|
model_for('RouteTableExists'),
|
||||||
ec2.describe_route_tables)
|
core_waiter.NormalizedOperationMethod(
|
||||||
|
ec2.describe_route_tables
|
||||||
|
))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue