saltstack/salt — pull request #16420 by Lacrymology (2014-10-07 04:39:46+00:00)
Title: Make result=False if retcode is not 0 in module.run/wait

This fixes commit 57423e031aeb2d26f82795f36fb09f08b2e17af7 which introduced this code, but seems to check the wrong part of `ret`

I'm fixing this on 2014.1 because it's the branch we're working with, but if preferred I can port it to develop and backport it to the `2014.1` and `0.17` branches