Skip to content

Commit 2ccdabd

Browse files
committed
Always use lower case for custom attribute prefix in template file.
1 parent 489581e commit 2ccdabd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/psij/executors/batch/batch_scheduler_executor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ def _attrs_to_mustache(job: Job) -> Dict[str, Union[object, List[Dict[str, objec
3838
for k, v in job.spec.attributes._custom_attributes.items():
3939
ks = k.split('.', maxsplit=1)
4040
if len(ks) == 2:
41+
# always use lower case here
42+
ks[0] = ks[0].lower()
4143
if ks[0] not in r:
4244
r[ks[0]] = []
4345
cast(List[Dict[str, object]], r[ks[0]]).append({'key': ks[1], 'value': v})

0 commit comments

Comments
 (0)