mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
spacewalk virtual better error feedback
This commit is contained in:
parent
280b749d97
commit
38d9fe7134
@ -58,7 +58,11 @@ def __virtual__():
|
||||
Check for spacewalk configuration in master config file
|
||||
or directory and load runner only if it is specified
|
||||
'''
|
||||
return HAS_LIBS and _get_spacewalk_configuration()
|
||||
if not HAS_LIBS:
|
||||
return False, 'Missing six library'
|
||||
if not _get_spacewalk_configuration():
|
||||
return False, 'No spacewalk configuration found'
|
||||
return True
|
||||
|
||||
|
||||
def _get_spacewalk_configuration(spacewalk_url=''):
|
||||
|
Loading…
Reference in New Issue
Block a user