1""" 2Display raw output data structure 3================================= 4 5This outputter simply displays the output as a python data structure, by 6printing a string representation of it. It is similar to the :mod:`pprint 7<salt.output.pprint>` outputter, only the data is not nicely 8formatted/indented. 9 10This was the original outputter used by Salt before the outputter system was 11developed. 12 13CLI Example: 14 15.. code-block:: bash 16 17 salt '*' foo.bar --out=raw 18 19Example output: 20 21.. code-block:: python 22 23 salt '*' foo.bar --out=table 24 {'myminion': {'foo': {'list': ['Hello', 'World'], 'bar': 'baz', 'dictionary': {'abc': 123, 'def': 456}}}} 25""" 26 27 28import salt.utils.stringutils 29 30 31def output(data, **kwargs): # pylint: disable=unused-argument 32 """ 33 Rather basic.... 34 """ 35 if not isinstance(data, str): 36 data = str(data) 37 return salt.utils.stringutils.to_unicode(data) 38