diff --git a/src/gpuhunt/providers/azure.py b/src/gpuhunt/providers/azure.py index bd7fae4..e9c167d 100644 --- a/src/gpuhunt/providers/azure.py +++ b/src/gpuhunt/providers/azure.py @@ -1,5 +1,6 @@ import json import logging +import math import os import re import time @@ -146,10 +147,13 @@ def get( continue if not item["armSkuName"]: continue + price = float(item["retailPrice"]) + if math.isclose(price, 0): + continue offer = RawCatalogItem( instance_name=item["armSkuName"], location=item["armRegionName"], - price=item["retailPrice"], + price=price, spot="Spot" in item["meterName"], cpu=None, memory=None,