You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@aurora.apache.org by "Kevin Sweeney (JIRA)" <ji...@apache.org> on 2015/01/13 20:45:35 UTC

[jira] [Commented] (AURORA-1008) Pystachio section variables don't seem to work as described in the documentation

    [ https://issues.apache.org/jira/browse/AURORA-1008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14275794#comment-14275794 ] 

Kevin Sweeney commented on AURORA-1008:
---------------------------------------

The documentation is incorrect here - pystachio has never supported this. I've put up https://reviews.apache.org/r/29862/ to fix the documentation.

> Pystachio section variables don't seem to work as described in the documentation
> --------------------------------------------------------------------------------
>
>                 Key: AURORA-1008
>                 URL: https://issues.apache.org/jira/browse/AURORA-1008
>             Project: Aurora
>          Issue Type: Bug
>          Components: Documentation
>            Reporter: Florian Pfeiffer
>            Assignee: Kevin Sweeney
>
> 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
> {code}
> {{#x}} Testing... {{/x}}
> {code}
> or
> {code}
> { "x": [ { "name" : "tic" } { "name" : "tac" } { "name" : "toe" } ] }
> {{#x}} {{name}} {{/x}}
> {code}
> Example:
> {code}
> 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'),
> ]
> {code}
> 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?)



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