PK qhYξΆJίF ίF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /proc/self/root/opt/saltstack/salt/lib/python3.10/site-packages/salt/output/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : //proc/self/root/opt/saltstack/salt/lib/python3.10/site-packages/salt/output/pony.py |
r""" Display Pony output data structure ================================== :depends: - ponysay CLI program Display output from a pony. Ponies are better than cows because everybody wants a pony. Example output: .. code-block:: cfg < {'local': True} > ----------------- \ \ \ βββββββ βββββββββ βββββββββββββββββ βββββββββββββββββββ βββ βββββββββββββββ βββββββββββββββββ βββββββββββββββββ βββββββ βββββββββββββββββ ββββββββββββ ββββββββββββββββββ ββββββββββββββββ ββββββββββββββββββ ββββββββββββββββββ ββββββββββββββββββββββ βββββββββββ βββββββββββββββββ βββββββββββ βββββββββββββββββ βββββββββββ ββββββββββββββββ ββββββββββββ βββββββββββββββ ββββββββββββ ββββββ ββββββββ βββββββββ βββββββ βββββββ ββββββββββ βββββββ βββββββββββββββββββ βββββββββ ββββββββ ββββββββ βββββββββ βββββββββ ββββββ ββββββ CLI Example: .. code-block:: bash salt '*' foo.bar --out=pony """ import subprocess import salt.utils.data import salt.utils.path __virtualname__ = "pony" def __virtual__(): if salt.utils.path.which("ponysay"): return __virtualname__ return False def output(data, **kwargs): # pylint: disable=unused-argument """ Mane function """ high_out = __salt__["highstate"](data) return subprocess.check_output(["ponysay", salt.utils.data.decode(high_out)])