def _nested_output(obj):
 from salt.output import nested
 nested.__opts__ = {}
 ret = nested.output(obj).rstrip()
 return ret

def _nested_output ( obj ) : from salt . output import nested nested . __opts__ = { } ret = nested . output ( obj ) . rstrip ( ) return ret
serialize obj and format for output .