modules.gpg: __virtual__ return err msg.

Updated message when gpg binary is not in the path.
This commit is contained in:
abednarik 2015-12-27 19:44:59 -03:00
parent 9dfcf78c96
commit 32d29c7fd0

View File

@ -97,7 +97,10 @@ def _check_gpg():
Looks to see if gpg binary is present on the system. Looks to see if gpg binary is present on the system.
''' '''
# Get the path to the gpg binary. # 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__(): def __virtual__():