Skip to content

Commit 5f34764

Browse files
authored
Merge pull request #518 from ExaWorks/fix_null_account
Setting the `project_name` in the constructor can reset the `account`
2 parents fbaaf0a + b3f57ec commit 5f34764

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/psij/job_attributes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ def __init__(self, duration: timedelta = timedelta(minutes=10),
5353
self.account = account
5454
self.duration = duration
5555
self.queue_name = queue_name
56-
self.project_name = project_name
56+
if project_name is not None:
57+
self.project_name = project_name
5758
self.reservation_id = reservation_id
5859
self._custom_attributes = custom_attributes
5960

0 commit comments

Comments
 (0)