mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 09:40:20 +00:00
Moving setting the LOAD_BALANCING_POLICY_MAP dictionary into the try except block that determines if the cassandra_cql module should be made available.
This commit is contained in:
parent
1404abe773
commit
a3e56f4d60
2 changed files with 18 additions and 17 deletions
1
changelog/62886.fixed
Normal file
1
changelog/62886.fixed
Normal file
|
@ -0,0 +1 @@
|
|||
Moving setting the LOAD_BALANCING_POLICY_MAP dictionary into the try except block that determines if the cassandra_cql module should be made available.
|
|
@ -136,11 +136,8 @@ try:
|
|||
|
||||
# pylint: enable=import-error,no-name-in-module
|
||||
HAS_DRIVER = True
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
|
||||
LOAD_BALANCING_POLICY_MAP = {
|
||||
LOAD_BALANCING_POLICY_MAP = {
|
||||
"HostDistance": HostDistance,
|
||||
"LoadBalancingPolicy": LoadBalancingPolicy,
|
||||
"RoundRobinPolicy": RoundRobinPolicy,
|
||||
|
@ -154,7 +151,10 @@ LOAD_BALANCING_POLICY_MAP = {
|
|||
"IdentityTranslator": IdentityTranslator,
|
||||
"NoSpeculativeExecutionPlan": NoSpeculativeExecutionPlan,
|
||||
"NoSpeculativeExecutionPolicy": NoSpeculativeExecutionPolicy,
|
||||
}
|
||||
}
|
||||
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
|
||||
def __virtual__():
|
||||
|
|
Loading…
Add table
Reference in a new issue