未验证 提交 871a0d14 编写于 作者: N Nicolas Hennion 提交者: GitHub

Merge pull request #1402 from EmilienMottet/develop

fix tablename cassandra export and variabilize the cassandra table-name
......@@ -115,11 +115,11 @@ class Export(GlancesExport):
# Write input to the Cassandra table
try:
stmt = "INSERT INTO {} (plugin, time, stat) VALUES (?, ?, ?)".format(self.table)
query = self.session.prepare(stmt)
self.session.execute(
"""
INSERT INTO localhost (plugin, time, stat)
VALUES (%s, %s, %s)
""",
query,
(name, uuid_from_time(datetime.now()), data)
)
except Exception as e:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册