Skip to content

Commit 7d5fdd4

Browse files
authored
Merge pull request #228 from knikolla/fix/cluster_name_header
Fix Cluster Name in invoice
2 parents 31000f3 + 2f50bff commit 7d5fdd4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/coldfront_plugin_cloud/management/commands/calculate_storage_gb_hours.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ def get_headers(cls):
5959
"Project - Allocation",
6060
"Project - Allocation ID",
6161
"Manager (PI)",
62+
"Cluster Name",
6263
"Invoice Email",
6364
"Invoice Address",
6465
"Institution",
@@ -212,7 +213,7 @@ def process_invoice_row(allocation, attrs, su_name, rate):
212213
attributes.ALLOCATION_PROJECT_ID
213214
),
214215
PI=allocation.project.pi.email,
215-
Cluster_Name=allocation.resources.first().resource_type.name.lower(),
216+
Cluster_Name=allocation.resources.first().name,
216217
Institution_Specific_Code=allocation.get_attribute(
217218
attributes.ALLOCATION_INSTITUTION_SPECIFIC_CODE
218219
)

0 commit comments

Comments
 (0)