mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Change the YAML outputter to use block mode and add some docs
This commit is contained in:
parent
b58cc87a61
commit
53594f372a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user