提交 504450ca 编写于 作者: N nicolargo

Cannot restart glances with --export influxdb after update to 3.1.1 #1530

上级 848740e5
...@@ -64,10 +64,16 @@ class Export(GlancesExport): ...@@ -64,10 +64,16 @@ class Export(GlancesExport):
if not self.export_enable: if not self.export_enable:
return None return None
# Correct issue #1530
if self.protocol is not None and (self.protocol.lower() == 'https'):
ssl = True
else:
ssl = False
try: try:
db = InfluxDBClient(host=self.host, db = InfluxDBClient(host=self.host,
port=self.port, port=self.port,
ssl=(self.protocol.lower() == 'https'), ssl=ssl,
verify_ssl=False, verify_ssl=False,
username=self.user, username=self.user,
password=self.password, password=self.password,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册