Document Handling custom placeholders in param overrides
POMS broke on a user supplied custom placeholder. See Requested Item RITM0735334.
I have a variable defined in my cfg:
I'd like to override this in my poms campaign stage a la:
-Ojob_output.dest = %(testoutdir)s
File "/home/poms/current/poms/poms/webservice/TaskPOMS.py", line 764, in launch_jobs
#2 Updated by Marc Mengel 8 months ago
Double the percent sign, and put single quotes around it.
The doubled percent sign will escape it from the % formatting when POMS generates the command
The single quotes will keep the shell from whining about the parenthesis.
Then fife_launch should expand it from global.testoutdir.
#3 Updated by Marc Mengel 6 months ago
Converting this to a documentation issue:
We should mention that:
- if you're using fife_wrap/fife_launch
- you can define a name in the [globals] section:
[globals] ... myvar=some_silly_thing
- then you can use overrides with a doubled percent sign to refer to that variable in your config
The single-percent is for a POMS defined value, and the double-percent one is for a value in your config.