Merged cqlengine/connection.py

This commit is contained in:
bjmb
2017-03-06 10:36:29 -05:00
committed by Jim Witschey
parent 9ac54596e1
commit 6cc62f7dcd

View File

@@ -184,6 +184,8 @@ def register_connection(name, hosts=None, consistency=None, lazy_connect=False,
conn = Connection.from_session(name, session=session)
conn.setup_session()
else: # use hosts argument
if consistency is None:
consistency = ConsistencyLevel.LOCAL_ONE
conn = Connection(
name, hosts=hosts,
consistency=consistency, lazy_connect=lazy_connect,