Benjamin Staffin created AURORA-1738:
----------------------------------------

             Summary: escaping pystachio variable strings is insane
                 Key: AURORA-1738
                 URL: https://issues.apache.org/jira/browse/AURORA-1738
             Project: Aurora
          Issue Type: Bug
          Components: Client
    Affects Versions: 0.12.0, 0.15.0
            Reporter: Benjamin Staffin
            Priority: Minor


If you want to include the bare string {{{{.Foo}}}} in a job's cmdline, you 
currently have to do this: {{{{&&&&&&&&&&&&.Foo}}}} - that's twelve ampersands, 
which is clearly not ideal.

The pystachio parser nominally uses {{{{&foo}}}} to escape {{{{foo}}}}, so I 
guess that parser must get applied at least 11 times between the CLI tool 
reading the file and the runner actually launching processes.

{{MustacheParser.split()}} has a {{keep_aliases}} parameter that tells it not 
to remove & characters in its output.  Perhaps there is a way to enable that 
for all but the very last round of pystachio parsing?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to