def output(data):

    params = dict(Dumper=OrderedDumper)
    if 'output_indent' not in __opts__:
        # default indentation
        params.update(default_flow_style=False)
    elif __opts__['output_indent'] >= 0:
        # custom indent
        params.update(default_flow_style=False,
                      indent=__opts__['output_indent'])
    else:  # no indentation
        params.update(default_flow_style=True,
                      indent=0)
    return yaml.dump(data, **params)
Print out YAML using the block mode
dataset/ETHPy150Open saltstack/salt/salt/output/yaml_out.py/output