Merge pull request #29352 from simonbp/virt_ret_apache

modules.apache: __virtual__ return err msg
This commit is contained in:
Mike Place 2015-12-02 17:57:52 -07:00
commit e63f92a7aa

View File

@ -41,7 +41,7 @@ def __virtual__():
cmd = _detect_os()
if salt.utils.which(cmd):
return 'apache'
return False
return (False, 'The apache execution module cannot be loaded: apache is not installed.')
def _detect_os():