summaryrefslogtreecommitdiffstats
path: root/glances/exports/couchdb/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'glances/exports/couchdb/__init__.py')
-rw-r--r--glances/exports/couchdb/__init__.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/glances/exports/couchdb/__init__.py b/glances/exports/couchdb/__init__.py
index 7f3a216a..5cc65529 100644
--- a/glances/exports/couchdb/__init__.py
+++ b/glances/exports/couchdb/__init__.py
@@ -36,9 +36,7 @@ class Export(GlancesExport):
# Load the CouchDB configuration file section
# User and Password are mandatory with CouchDB 3.0 and higher
- self.export_enable = self.load_conf('couchdb',
- mandatories=['host', 'port', 'db',
- 'user', 'password'])
+ self.export_enable = self.load_conf('couchdb', mandatories=['host', 'port', 'db', 'user', 'password'])
if not self.export_enable:
sys.exit(2)
@@ -51,8 +49,7 @@ class Export(GlancesExport):
return None
# @TODO: https
- server_uri = 'http://{}:{}@{}:{}/'.format(self.user, self.password,
- self.host, self.port)
+ server_uri = 'http://{}:{}@{}:{}/'.format(self.user, self.password, self.host, self.port)
try:
s = pycouchdb.Server(server_uri)