This is an automated email from the ASF dual-hosted git repository.

micafer pushed a commit to branch fix_scrape_ec2_prices
in repository https://gitbox.apache.org/repos/asf/libcloud.git

commit a5a594618aeefa7a7b2785b552ba3fe1567906a2
Author: Miguel Caballer <[email protected]>
AuthorDate: Tue Jan 27 08:14:21 2026 +0100

    Fix Azure scrape pricing script
---
 contrib/scrape-azure-prices.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/scrape-azure-prices.py b/contrib/scrape-azure-prices.py
index 7c33ef55b..854aa2c1d 100755
--- a/contrib/scrape-azure-prices.py
+++ b/contrib/scrape-azure-prices.py
@@ -48,7 +48,7 @@ def get_azure_prices():
             continue
         size = size_raw[2] + size_raw[1]
         prices = {}
-        if not value["prices"].get("perhour"):
+        if not value.get("prices", {}).get("perhour"):
             continue
         for reg, price in value["prices"]["perhour"].items():
             region = region_map[reg].lower().replace(" ", "")

Reply via email to