Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
Twitter Aurora Q1'15 Sprint 1, Twitter Aurora Q1'15 Sprint 2
Description
At https://github.com/apache/incubator-aurora/blob/master/docs/configuration-tutorial.md#user-content-templating-1-binding-in-pystachio is described that you can use
{{#x}} Testing... {{/x}}
or
{ "x": [ { "name" : "tic" } { "name" : "tac" } { "name" : "toe" } ] } {{#x}} {{name}} {{/x}}
Example:
hello = Process( name = 'hello', cmdline = """ while true; do echo hello world {{#x}} if-statement {{/x}} sleep 100 done """).bind(x = 1) task = SequentialTask( processes = [hello], resources = Resources(cpu = 1.0, ram = 128*MB, disk = 128*MB)) jobs = [ Service( task = task, cluster = 'gf-office', role = 'derfloh', environment = 'test', name = 'hello'), ]
If I try to upload a config that uses the above syntax, I get a "Error loading configuration: #x"
(I'm using 0.6.0-incubating, but the documentation for 0.6.0 and master is the same at that part, so that shouldn't matter?)
Attachments
Issue Links
- duplicates
-
AURORA-944 Documentation about pystachio Mustache support is incorrect
- Resolved