Change the default salt-call -g output to yaml

This commit is contained in:
Jeff Schroeder 2011-12-01 21:46:35 -08:00
parent aad52f503b
commit d7c5ee57c0

View File

@ -58,7 +58,7 @@ class Caller(object):
Print out the grains
'''
grains = salt.loader.grains(self.opts)
printout = self._get_outputter()
printout = self._get_outputter(out='yaml')
# If --json-out is specified, pretty print it
printout.indent = 2
printout(grains)