Skip to content

Commit 8be3d6b

Browse files
committed
python: allow {id.f58plain} to be used in output formats
Problem: The f58plain encoding of jobids could be useful in some situations with flux-jobs and other tools that support {id.<encoding>} output format, but this encoding is currently not available since it does not appear in `job_fields_to_attrs()` or the JobInfoFormat headings dict. Add `id.f58plain` where necessary to make it available as an option in flux-jobs etc.
1 parent 9497712 commit 8be3d6b

File tree

1 file changed

+2
-0
lines changed
  • src/bindings/python/flux/job

1 file changed

+2
-0
lines changed

src/bindings/python/flux/job/info.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,7 @@ def job_fields_to_attrs(fields):
641641
"id.dec": (),
642642
"id.hex": (),
643643
"id.f58": (),
644+
"id.f58plain": (),
644645
"id.emoji": (),
645646
"id.kvs": (),
646647
"id.words": (),
@@ -736,6 +737,7 @@ class JobInfoFormat(flux.util.OutputFormat):
736737
"id.dec": "JOBID",
737738
"id.hex": "JOBID",
738739
"id.f58": "JOBID",
740+
"id.f58plain": "JOBID",
739741
"id.emoji": "JOBID",
740742
"id.kvs": "JOBID",
741743
"id.words": "JOBID",

0 commit comments

Comments
 (0)