This changes it so that the batch return is returned to salt.states.saltmod.state(). I'm not entirely certain how this will impact _run_batch() in salt/cli/salt.py, however. I tried dropping in logging and launching pudb from the block of code that checks the retcode (see here), and the flow does not appear to hit that block of code. I can dig further, but I'd also like to get @cachedout's input on this fix. I don't want to fix something just to break something else inadvertently.
Return the ret data from batch execution instead of raw data
Go Go Jenkins!