aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2024-09-16 16:32:24 +0100
committerArun Isaac2024-09-16 16:32:24 +0100
commit64a5cf9d2d4f279eb1560523bf0f8048568811dd (patch)
treecd4dbc4551dbf022f6864f1c518acb64300c2edb
parent4d5ab14d78fbe9305f56bead350405846a888757 (diff)
downloadravanan-64a5cf9d2d4f279eb1560523bf0f8048568811dd.tar.gz
ravanan-64a5cf9d2d4f279eb1560523bf0f8048568811dd.tar.lz
ravanan-64a5cf9d2d4f279eb1560523bf0f8048568811dd.zip
bin: Explain why we support the SLURM_JWT=token format.
* bin/ravanan (read-jwt): Explain why we support the SLURM_JWT=token format.
-rwxr-xr-xbin/ravanan2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/ravanan b/bin/ravanan
index 1d08dc6..2b44163 100755
--- a/bin/ravanan
+++ b/bin/ravanan
@@ -94,6 +94,8 @@ Slurm API batch system options:
(define (read-jwt file)
"Read JWT token from @var{file}. Support both files that only have the token and
files that have the token in the @verbatim{SLURM_JWT=token} format."
+ ;; We support the SLURM_JWT=token format because that's how `scontrol token'
+ ;; outputs it.
(call-with-input-file file
(compose (cut string-trim-prefix "SLURM_JWT=" <>)
string-trim-both