Merge pull request #44015 from gtmanfred/develop

convert jinja context to dictionary
This commit is contained in:
Nicole Thomas 2017-10-16 14:39:29 -04:00 committed by GitHub
commit 96dc6b0171
2 changed files with 2 additions and 2 deletions

View File

@ -1727,7 +1727,7 @@ in the current Jinja context.
.. code-block:: jinja
Context is: {{ show_full_context() }}
Context is: {{ show_full_context()|yaml(False) }}
.. jinja_ref:: logs

View File

@ -582,7 +582,7 @@ def symmetric_difference(lst1, lst2):
@jinja2.contextfunction
def show_full_context(ctx):
return ctx
return salt.utils.simple_types_filter({key: value for key, value in ctx.items()})
class SerializerExtension(Extension, object):