Skip to content

Commit

Permalink
check create_database config option prior to create annotation databa…
Browse files Browse the repository at this point in the history
…se, fix regel#122
  • Loading branch information
Toni Moreno Gimenez committed Jul 28, 2020
1 parent 0252b67 commit f9a709c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion loudml/influx.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,8 @@ def annotationdb(self):
ssl=self.use_ssl,
verify_ssl=self.verify_ssl,
)
self._annotationdb.create_database(db)
if self.cfg.get('create_database'):
self._annotationdb.create_database(db)

return self._annotationdb

Expand Down

0 comments on commit f9a709c

Please sign in to comment.