def _nested_output(obj):
    nested.__opts__ = __opts__
    ret = nested.output(obj).rstrip()
    return ret
Serialize obj and format for output
dataset/ETHPy150Open saltstack/salt/salt/states/pkg.py/_nested_output