~daisy-pluckers/oops-repository/trunk

« back to all changes in this revision

Viewing changes to oopsrepository/oopses.py

  • Committer: Brian Murray
  • Date: 2022-03-23 23:00:36 UTC
  • Revision ID: brian@canonical.com-20220323230036-ps91lxjijxrnffon
change the consistency level for pycassa from ONE to LOCAL_ONE

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
        username=config['username'], password=config['password'])
56
56
    cluster = Cluster(config['host'], auth_provider=auth_provider)
57
57
    _cassandra_session = cluster.connect(config['keyspace'])
58
 
    _cassandra_session.default_consistency_level = ConsistencyLevel.ONE
 
58
    _cassandra_session.default_consistency_level = ConsistencyLevel.LOCAL_ONE
59
59
    return _cassandra_session
60
60
 
61
61
def prune(config):