mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Merge pull request #44015 from gtmanfred/develop
convert jinja context to dictionary
This commit is contained in:
commit
96dc6b0171
@ -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
|
||||
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user