fix: [opensem] remove the need to care about leading zeroes in rank

This commit is contained in:
Valentin Lab
2025-10-11 04:59:44 +02:00
parent 1e1e8fde0f
commit e2af51d181
2 changed files with 3 additions and 1 deletions

View File

@@ -37,7 +37,7 @@ opensem:
paybox-system: paybox-system:
paybox: paybox:
test: true test: true
rank: "001" ## keep the double-quotes ! rank: 1 ## no need for zeroes before !
site: 2XXXX9 site: 2XXXX9
id: 2XXXXX4 id: 2XXXXX4
hmac-key: "FFAXXXXX...XXXXX" hmac-key: "FFAXXXXX...XXXXX"

View File

@@ -22,6 +22,8 @@ hmac_key=$(relation-get hmac-key) || {
exit 1 exit 1
} }
rank=$(printf "%03d" "$rank")
[ -n "$test" ] && opensem:config-set PAYBOX_TEST "$test" [ -n "$test" ] && opensem:config-set PAYBOX_TEST "$test"
opensem:config-set PAYBOX_SITE "$site" opensem:config-set PAYBOX_SITE "$site"
opensem:config-set PAYBOX_RANK "$rank" opensem:config-set PAYBOX_RANK "$rank"