Skip to content

Commit

Permalink
fix: Lowercase the instance type.
Browse files Browse the repository at this point in the history
  • Loading branch information
brookemckim committed Sep 27, 2024
1 parent 40027ed commit 1eb12d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion opensearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ def add_volume_quotas(instances):
rows = table.xpath(".//tr[./td]")

for r in rows:
instance_type = etree.tostring(r[0], method="text").strip().decode()
# .lower() as keys were coming back with odd capitalization.
instance_type = etree.tostring(r[0], method="text").strip().decode().lower()
min_ebs = etree.tostring(r[1], method="text").strip().decode()
max_ebs_gp2 = etree.tostring(r[2], method="text").strip().decode()
max_ebs_gp3 = etree.tostring(r[3], method="text").strip().decode()
Expand Down

0 comments on commit 1eb12d3

Please sign in to comment.