mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Don't call potentially missing shade library (#53734)
* Check for openstack * Account for HAS_SHADE not being a tuple
This commit is contained in:
parent
e268b95767
commit
71f5f38deb
1 changed files with 6 additions and 0 deletions
|
@ -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],
|
||||
|
|
Loading…
Add table
Reference in a new issue