Skip to content

Commit

Permalink
BUGFIX: RethinkDB backend connection
Browse files Browse the repository at this point in the history
Updating the RethinkDB backend to check if a connection exists before creating one.
  • Loading branch information
neil-pozetroninc authored May 20, 2018
1 parent c5b440a commit 8d9bdfd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kaneda/backends/rethink.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ def __init__(self, db, table_name=None, connection=None, host=None, port=None, u
self.connection = r.connect(host=host, port=port, db=db, timeout=timeout)
self.db = db
self.table_name = table_name
if self.connection is None:
self.connection = r.connect(db=db, timeout=timeout)
self._create_database()

def _get_payload(self, name, value, tags, id_):
Expand Down

0 comments on commit 8d9bdfd

Please sign in to comment.