Merge pull request #54143 from Akm0d/openstack_fix

Don't call potentially missing shade library (#53734)
This commit is contained in:
Daniel Wozniak 2019-08-08 18:05:25 -07:00 committed by GitHub
commit 5bef520241
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -273,6 +273,12 @@ def get_dependencies():
'''
Warn if dependencies aren't met.
'''
if not HAS_SHADE:
log.warning('"shade" not found')
return False
elif hasattr(HAS_SHADE, '__len__') and not HAS_SHADE[0]:
log.warning(HAS_SHADE[1])
return False
deps = {
'shade': shade[0],
'os_client_config': shade[0],