Change the YAML outputter to use block mode and add some docs

This commit is contained in:
Thomas S Hatch 2012-10-30 11:42:35 -06:00
parent b58cc87a61
commit 53594f372a

View File

@ -1,5 +1,6 @@
'''
YAML Outputter
Output data in YAML, this outputter defaults to printing in YAML block mode
for better readability.
'''
# Third Party libs
@ -12,6 +13,6 @@ def __virtual__():
def output(data):
'''
Print out YAML
Print out YAML using the block mode
'''
return yaml.dump(data)
return yaml.dump(data, default_flow_style=False)