Merge pull request #30023 from abednarik/virtual_ret_gpg_module

modules.gpg: __virtual__ return err msg.
This commit is contained in:
Mike Place 2015-12-28 08:22:03 -07:00
commit 1a114658ba

View File

@ -97,7 +97,10 @@ def _check_gpg():
Looks to see if gpg binary is present on the system.
'''
# Get the path to the gpg binary.
return salt.utils.which('gpg')
if salt.utils.which('gpg'):
return __virtualname__
return (False, 'The gpg execution module cannot be loaded: '
'gpg binary is not in the path.')
def __virtual__():