Skip to content

Commit e5da649

Browse files
committed
comment improvements
1 parent 3231a02 commit e5da649

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

Diff for: nise/generators/aws/ec2_generator.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class EC2Generator(AWSGenerator):
2525

2626
INSTANCE_TYPES = (
2727
# NOTE: Each tuple represents
28-
# (instance type, physical_cores, vCPUs, memory, storage, family, cost, rate, savings, description)
28+
# (instance type, physical_cores, vCPUs, memory, storage, family, cost, rate, Reserved_instances, savings, description)
2929
(
3030
"m5.large",
3131
"1",

Diff for: tests/aws_static_report.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ generators:
2727
resource_id: 55555555
2828
product_sku: VEAJHRNKTJZQ
2929
region: us-east-1a
30-
resourved_instance: true
30+
reserved_instance: True
3131
- S3Generator:
3232
start_date: last_month
3333
end_date: last_month

Diff for: tests/test_aws_generator.py

+1
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,7 @@ def test_update_data_ec2_reserved_instances(self):
431431
row = generator._update_data(start_row, self.two_hours_ago, self.now)
432432

433433
self.assertEqual(row["lineItem/LineItemType"], "DiscountedUsage")
434+
self.assertEqual(row["lineItem/UnblendedCost"], 0)
434435

435436
def test_update_data(self):
436437
"""Test EBS specific update data method."""

0 commit comments

Comments
 (0)