Merge pull request #26746 from rallytime/nova_configs_fix

Make sure nova configs are set before checking for dependencies
This commit is contained in:
Joseph Hall 2015-08-28 15:34:58 -06:00
commit 3f7cc8318e

View File

@ -155,6 +155,9 @@ def __virtual__():
'''
request_log.setLevel(getattr(logging, __opts__.get('requests_log_level', 'warning').upper()))
if get_configured_provider() is False:
return False
if get_dependencies() is False:
return False
@ -167,7 +170,8 @@ def get_configured_provider():
'''
return config.is_provider_configured(
__opts__,
__active_provider_name__ or __virtualname__
__active_provider_name__ or __virtualname__,
('user', 'tenant', 'identity_url', 'compute_region',)
)