Linux server.edchosting.com 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
LiteSpeed
Server IP : 75.98.162.185 & Your IP : 216.73.216.163
Domains :
Cant Read [ /etc/named.conf ]
User : goons4good
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
python3.6 /
site-packages /
salt /
output /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2022-10-11 05:09
__init__.py
7.03
KB
-rw-r--r--
2022-05-16 09:16
dson.py
1.55
KB
-rw-r--r--
2022-05-16 09:16
highstate.py
21.64
KB
-rw-r--r--
2022-05-16 09:16
json_out.py
2.64
KB
-rw-r--r--
2022-05-16 09:16
key.py
3.01
KB
-rw-r--r--
2022-05-16 09:16
nested.py
5.27
KB
-rw-r--r--
2022-05-16 09:16
newline_values_only.py
2.11
KB
-rw-r--r--
2022-05-16 09:16
no_out_quiet.py
450
B
-rw-r--r--
2022-05-16 09:16
no_return.py
1.47
KB
-rw-r--r--
2022-05-16 09:16
overstatestage.py
1.01
KB
-rw-r--r--
2022-05-16 09:16
pony.py
2.58
KB
-rw-r--r--
2022-05-16 09:16
pprint_out.py
1010
B
-rw-r--r--
2022-05-16 09:16
profile.py
2.18
KB
-rw-r--r--
2022-05-16 09:16
progress.py
1.19
KB
-rw-r--r--
2022-05-16 09:16
raw.py
891
B
-rw-r--r--
2022-05-16 09:16
table_out.py
12.47
KB
-rw-r--r--
2022-05-16 09:16
txt.py
998
B
-rw-r--r--
2022-05-16 09:16
virt_query.py
1.84
KB
-rw-r--r--
2022-05-16 09:16
yaml_out.py
1.37
KB
-rw-r--r--
2022-05-16 09:16
Save
Rename
""" Display values only, separated by newlines ========================================== .. versionadded:: 2015.5.0 This outputter is designed for Salt CLI return data. It will do the following to the return dict: 1. Get just the values (ignoring the minion IDs). 2. Each value, if it is iterable, is split a separate line. 3. Each minion's values are separated by newlines. This results in a single string of return data containing all the values from the various minions. .. warning:: As noted above, this outputter will discard the minion ID. If the minion ID is important, then an outputter that returns the full return dictionary in a parsable format (such as :mod:`json <salt.output.json>`, :mod:`pprint, <salt.output.pprint>`, or :mod:`yaml <salt.output.yaml>`) may be more suitable. Example 1 ~~~~~~~~~ .. code-block:: bash salt '*' foo.bar --out=newline_values_only Input ----- .. code-block:: python { 'myminion': ['127.0.0.1', '10.0.0.1'], 'second-minion': ['127.0.0.1', '10.0.0.2'] } Output ------ .. code-block:: text 127.0.0.1 10.0.0.1 127.0.0.1 10.0.0.2 Example 2 ~~~~~~~~~ .. code-block:: bash salt '*' foo.bar --out=newline_values_only Input ----- .. code-block:: python { 'myminion': 8, 'second-minion': 10 } Output ------ .. code-block:: python 8 10 """ def _get_values(data): # This should be able to be improved # by parsing kargs from command line # instantiation. # But I am not sure how to do it # just yet. # This would enable us to toggle # this functionality. values = [] for _, minion_values in data.items(): if isinstance(minion_values, list): values.extend(minion_values) else: values.append(minion_values) return values def _one_level_values(data): return "\n".join(_string_list(_get_values(data))) def _string_list(a_list): return [str(item) for item in a_list] def output(data, **kwargs): # pylint: disable=unused-argument """ Display modified ret data """ return _one_level_values(data)