Skip to content

Commit

Permalink
no need for vendor check
Browse files Browse the repository at this point in the history
  • Loading branch information
daroczig committed Feb 26, 2024
1 parent e6c1cc4 commit cb3267c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/sc_crawler/vendors/aws.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,9 +326,7 @@ def _make_price_from_product(product, vendor):
return

try:
server = [
d for d in vendor.servers if d.vendor == vendor and d.id == instance_type
][0]
server = [d for d in vendor.servers if d.id == instance_type][0]
except IndexError:
logger.debug(f"No server definition found for {instance_type} @ {location}")
return
Expand Down Expand Up @@ -755,6 +753,7 @@ def inventory_storage_prices(vendor):


def inventory_traffic_prices(vendor):
# TODO AmazonVPC pricing? -> cache
pass


Expand Down

0 comments on commit cb3267c

Please sign in to comment.