mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Merge pull request #8532 from techhat/develop
Give softlayer drivers proper logs concerning imports
This commit is contained in:
commit
26a4b07f80
@ -53,6 +53,14 @@ def __virtual__():
|
||||
'''
|
||||
Set up the libcloud functions and check for SoftLayer configurations.
|
||||
'''
|
||||
if not HAS_SLLIBS:
|
||||
log.debug(
|
||||
'The SoftLayer Python Library needs to be installed in ordere to'
|
||||
'use the SoftLayer HW salt.cloud module. See: '
|
||||
'https://pypi.python.org/pypi/SoftLayer'
|
||||
)
|
||||
return False
|
||||
|
||||
if get_configured_provider() is False:
|
||||
log.debug(
|
||||
'There is no SoftLayer cloud provider configuration available. Not '
|
||||
|
@ -52,6 +52,14 @@ def __virtual__():
|
||||
'''
|
||||
Set up the libcloud functions and check for SoftLayer configurations.
|
||||
'''
|
||||
if not HAS_SLLIBS:
|
||||
log.debug(
|
||||
'The SoftLayer Python Library needs to be installed in ordere to'
|
||||
'use the SoftLayer salt.cloud module. See: '
|
||||
'https://pypi.python.org/pypi/SoftLayer'
|
||||
)
|
||||
return False
|
||||
|
||||
if get_configured_provider() is False:
|
||||
log.debug(
|
||||
'There is no SoftLayer cloud provider configuration available. '
|
||||
|
Loading…
Reference in New Issue
Block a user