Skip to content

Commit

Permalink
fix #719, fix #720
Browse files Browse the repository at this point in the history
  • Loading branch information
EverettBerry committed Nov 9, 2023
1 parent 8955887 commit d459014
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion in/rds.html.mako
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,9 @@
<td class="storage">
<% storage = inst['storage'] %>
% if storage == 'EBS Only':
<span sort="0">0 GiB (EBS only)</span>
<span sort="1">0 GiB (EBS only)</span>
% elif 'Aurora' in inst['storage']:
<span sort="0">Aurora I/O Optimized</span>
% else:
<% products = [int(s) for s in storage.split() if s.isdigit()] %>
<span sort="${products[0]*products[1]}">${inst['storage']}</span>
Expand Down
4 changes: 2 additions & 2 deletions opensearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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()
Expand Down

0 comments on commit d459014

Please sign in to comment.