Merge pull request #8532 from techhat/develop

Give softlayer drivers proper logs concerning imports
This commit is contained in:
Joseph Hall 2013-11-14 13:18:12 -08:00
commit 26a4b07f80
2 changed files with 16 additions and 0 deletions

View File

@ -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 '

View File

@ -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. '