mirror of
https://github.com/kemko/keenetic-grafana-monitoring.git
synced 2026-01-01 15:45:43 +03:00
Dockerize and type mapping
This commit is contained in:
committed by
Vitaliy Skrypnyk
parent
74109908c4
commit
2c4788e8a3
@@ -12,6 +12,7 @@ class InfuxWritter(object):
|
||||
def init_database(self):
|
||||
print("Connecting to InfluxDB: " + self._configuration['host'])
|
||||
db_name = self._configuration['db']
|
||||
# self._client.drop_database(db_name)
|
||||
|
||||
if db_name not in self._client.get_list_database():
|
||||
print("Creating InfluxDB database: " + db_name)
|
||||
|
||||
Reference in New Issue
Block a user