Hi, I found this project very useful, and using it actively.
I m facing an issue whenever Saltstack returns some syntax or template error, library is not able unmarshall the API returned JSON to Object and is causing JSON unmarshall exception.
{"return": [{"ubuntu": ["Rendering SLS 'base:test' failed: Jinja error: 'NamespacedDictWrapper' object has no attribute '__call__'\nTraceback (most recent call last):\n File \"/usr/lib/python2.7/dist-packages/salt/utils/templates.py\", line 366, in render_jinja_tmpl\n output = template.render(**decoded_context)\n File \"/usr/lib/python2.7/dist-packages/jinja2/environment.py\", line 969, in render\n return self.environment.handle_exception(exc_info, True)\n File \"/usr/lib/python2.7/dist-packages/jinja2/environment.py\", line 742, in handle_exception\n reraise(exc_type, exc_value, tb)\n File \"<template>\", line 6, in top-level template code\nAttributeError: 'NamespacedDictWrapper' object has no attribute '__call__'\n\n; line 6\n\n---\ntest-file:\n file.append:\n - name: /data/test.txt\n - text\n - Test from API\n - URL={{pillar('TM_URL')}} <======================\nTraceback (most recent call last):\n File \"/usr/lib/python2.7/dist-packages/salt/utils/templates.py\", line 366, in render_jinja_tmpl\n output = template.render(**decoded_context)\n File \"/usr/lib/python2.7/dist-packages/jinja2/environment.py\", line 969, in render\n return self.environment.handle_exception(exc_info, True)\n[...]\n---"]}]}