mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
redis_return: cluster_mode default to False in __virtual__ to prevent KeyError stacktraces
This commit is contained in:
parent
71e3286829
commit
c90f83b0f9
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ def __virtual__():
|
|||
if not HAS_REDIS:
|
||||
return False, 'Could not import redis returner; ' \
|
||||
'redis python client is not installed.'
|
||||
if not HAS_REDIS_CLUSTER and _get_options()['cluster_mode']:
|
||||
if not HAS_REDIS_CLUSTER and _get_options().get('cluster_mode', False):
|
||||
return (False, "Please install the redis-py-cluster package.")
|
||||
return __virtualname__
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue