Removing the code that lets you know when there's a syntax error seems to be a bad thing :)
not sure what's up there to be honest, but I think pinning down what the error is is appropriate. On Wed, Dec 3, 2014 at 10:50 AM, simonq <[email protected]> wrote: > Sorry for the late reply, forgot about this one. Anyway, after looking > through some commits it seems this error message comes with b61a785: > > in lib/ansible/utils/template.py; > > except TemplateSyntaxError, e: > raise errors.AnsibleError("template error while templating > string: %s" % str(e)) > > Removing those lines makes the playbook run without errors :) > > > On Tuesday, 11 November 2014 22:58:23 UTC+1, simonq wrote: >> >> I get* template error while templating string: unexpected '.' *when >> running this task using ansible 1.8 (devel fa953e162e). Used to work with >> previous version I was running (1d04e4b3d2). Any thoughts? >> >> - name: Get image id >> command: > >> docker inspect -f '{% raw %}{{ .Image }}{% endraw %}' nginx >> register: container_image >> >> - name: Do something with image >> command: echo {{ container_image.stdout }} >> > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/44a6710c-ea35-43c4-aaf9-5d03b871805f%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/44a6710c-ea35-43c4-aaf9-5d03b871805f%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgyGvhAYcSYgnsAS%2BBd1EUB9p7NoBg9fLMSABN7eS-sUxA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
