You right, but look closer to cmd._run() (which is in salt/modules/cmdmod.py)