Skip to content

Instantly share code, notes, and snippets.

Created May 16, 2017 18:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/66199ba32bef396b509e2a88200b0680 to your computer and use it in GitHub Desktop.
Save anonymous/66199ba32bef396b509e2a88200b0680 to your computer and use it in GitHub Desktop.
salt no_out failure?
vagrantsm ~ # salt 'vagrantminion*' test.ping
vagrantminion:
True
vagrantsm ~ # salt 'vagrantminion*' test.ping --out=no_out
[ERROR ] Invalid outputter no_out specified, fall back to nested
vagrantminion:
True
vagrantsm ~ # cat /usr/lib/python2.7/site-packages/salt/output/no_out.py
# -*- coding: utf-8 -*-
'''
Display no output
=================
No output is produced when this outputter is selected
'''
# Define the module's virtual name
__virtualname__ = 'quiet'
def __virtual__():
return __virtualname__
def output(ret):
'''
Don't display data. Used when you only are interested in the
return.
'''
return ''
vagrantsm ~ # salt 'vagrantminion*' test.ping --out=quiet
vagrantsm ~ #
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment