We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62575c0 commit ab8459aCopy full SHA for ab8459a
salt/output.py
@@ -145,6 +145,8 @@ class JSONOutputter(Outputter):
145
def __call__(self, data, **kwargs):
146
try:
147
# A good kwarg might be: indent=4
148
+ if kwargs.has_key('color'):
149
+ kwargs.pop('color')
150
ret = json.dumps(data, **kwargs)
151
except TypeError:
152
# Return valid json for unserializable objects
@@ -158,6 +160,8 @@ class YamlOutputter(Outputter):
158
160
supports = "yaml"
159
161
162
163
164
165
print yaml.dump(data, **kwargs)
166
167
def get_outputter(name=None):
0 commit comments