mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
modules.gpg: __virtual__ return err msg.
Updated message when gpg binary is not in the path.
This commit is contained in:
parent
9dfcf78c96
commit
32d29c7fd0
@ -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__():
|
||||||
|
Loading…
Reference in New Issue
Block a user