Skip to content

Commit

Permalink
Don't call potentially missing shade library (saltstack#53734)
Browse files Browse the repository at this point in the history
* Check for openstack

* Account for HAS_SHADE not being a tuple
  • Loading branch information
Akm0d committed Aug 7, 2019
1 parent e268b95 commit 71f5f38
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions salt/cloud/clouds/openstack.py
Expand Up @@ -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],
Expand Down

0 comments on commit 71f5f38

Please sign in to comment.