Skip to content

Commit c244455

Browse files
himani2411Himani Anil Deshpande
andcommitted
[Integ-tests] Add Active state as filter for Capacity Reservations (aws#7008)
* CapacityBlockStatus does not need this filter but CapacityReservations API does Co-authored-by: Himani Anil Deshpande <[email protected]>
1 parent 7bf369e commit c244455

File tree

1 file changed

+1
-0
lines changed
  • tests/integration-tests/tests/common

1 file changed

+1
-0
lines changed

tests/integration-tests/tests/common/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,7 @@ def get_capacity_reservation_id(instance_type, region, count, os):
569569
instance_type == reservation.get("InstanceType")
570570
and os_platform == reservation.get("InstancePlatform")
571571
and reservation.get("AvailableInstanceCount") >= count
572+
and reservation.get("State") == "active"
572573
):
573574
reservations_ids.append(
574575
{

0 commit comments

Comments
 (0)