Skip to content

Commit 2bc9771

Browse files
committed
s
1 parent 486e229 commit 2bc9771

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/coldfront_plugin_cloud/management/commands/calculate_storage_gb_hours.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -201,17 +201,15 @@ def handle(self, *args, **options):
201201

202202
def get_outages_for_service(resource_name: str):
203203
"""Get outages for a service from nerc-rates.
204-
204+
205205
:param resource_name: Name of the resource to get outages for.
206206
:return: List of excluded intervals or None.
207207
"""
208208
if resource_name not in outages_cache:
209209
service_name = RESOURCE_NAME_TO_NERC_SERVICE.get(resource_name)
210210
if service_name:
211211
outages_cache[resource_name] = utils.load_outages_from_nerc_rates(
212-
options["start"],
213-
options["end"],
214-
service_name
212+
options["start"], options["end"], service_name
215213
)
216214
else:
217215
outages_cache[resource_name] = None
@@ -221,7 +219,7 @@ def process_invoice_row(allocation, attrs, su_name, rate):
221219
"""Calculate the value and write the bill using the writer."""
222220
resource_name = allocation.resources.first().name
223221
excluded_intervals_list = get_outages_for_service(resource_name)
224-
222+
225223
time = 0
226224
for attribute in attrs:
227225
time += utils.calculate_quota_unit_hours(

0 commit comments

Comments
 (0)