From d4590140e4c4992d42ce8208e6fe069db3eeb3d5 Mon Sep 17 00:00:00 2001 From: Everett Berry Date: Thu, 9 Nov 2023 15:22:13 -0600 Subject: [PATCH] fix #719, fix #720 --- in/rds.html.mako | 4 +++- opensearch.py | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/in/rds.html.mako b/in/rds.html.mako index 19e2468..08f5503 100644 --- a/in/rds.html.mako +++ b/in/rds.html.mako @@ -201,7 +201,9 @@ <% storage = inst['storage'] %> % if storage == 'EBS Only': - 0 GiB (EBS only) + 0 GiB (EBS only) + % elif 'Aurora' in inst['storage']: + Aurora I/O Optimized % else: <% products = [int(s) for s in storage.split() if s.isdigit()] %> ${inst['storage']} diff --git a/opensearch.py b/opensearch.py index 9cedc62..ad4de1d 100755 --- a/opensearch.py +++ b/opensearch.py @@ -67,7 +67,7 @@ def add_pretty_names(instances): def add_volume_quotas(instances): os_quotas_url = "https://docs.aws.amazon.com/opensearch-service/latest/developerguide/limits.html" tree = etree.parse(urllib2.urlopen(os_quotas_url), etree.HTMLParser()) - table = tree.xpath('//div[@class="table-contents disable-scroll"]//table')[6] + table = tree.xpath('//div[@class="table-contents disable-scroll"]//table')[1] rows = table.xpath(".//tr[./td]") for r in rows: @@ -80,7 +80,7 @@ def add_volume_quotas(instances): instances[instance_type]["max_ebs_gp2"] = max_ebs_gp2 instances[instance_type]["max_ebs_gp3"] = max_ebs_gp3 - table = tree.xpath('//div[@class="table-contents disable-scroll"]//table')[7] + table = tree.xpath('//div[@class="table-contents disable-scroll"]//table')[2] rows = table.xpath(".//tr[./td]") for r in rows: instance_type = etree.tostring(r[0], method="text").strip().decode()