Well, at first I've tried to use ```__salt__['cmd.retcode']``` instead of ```__salt__['cmd.run_all']``` and it failed with error that ```retcode``` has no ```file``` argument.

This comment is strange, I can't imagine why every other function has ```**kwargs``` and ```retcode``` hasn't? And it didn't work as expected. So I added missing ```**kwargs```.