Skip to content

Commit

Permalink
Merge pull request #526 from nitrocode/check_launch_specifications
Browse files Browse the repository at this point in the history
Check LaunchSpecifications exists
  • Loading branch information
jantman committed Apr 20, 2021
2 parents 9c2d318 + d25863f commit 783dfaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion awslimitchecker/services/ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def _find_usage_spot_fleets(self):
active_fleets += 1
cap = fleet['SpotFleetRequestConfig']['TargetCapacity']
launch_specs = len(
fleet['SpotFleetRequestConfig']['LaunchSpecifications'])
fleet['SpotFleetRequestConfig'].get('LaunchSpecifications', []))
total_target_cap += cap
lim_cap_per_fleet._add_current_usage(
cap, resource_id=_id, aws_type='AWS::EC2::SpotFleetRequest')
Expand Down

0 comments on commit 783dfaa

Please sign in to comment.