aboutsummaryrefslogtreecommitdiff
path: root/prometheus_pgbouncer_exporter
diff options
context:
space:
mode:
authorPablo Carranza <pcarranza@gmail.com>2017-06-10 23:45:51 +0200
committerPablo Carranza <pcarranza@gmail.com>2017-06-10 23:45:51 +0200
commit730f895edee9a6201741b4e511c2572fcb56649d (patch)
tree9f4fb75abc63385de98960595529a810165a1f4a /prometheus_pgbouncer_exporter
parent11b7cefa15062ef21769e373d28a156b861db9cc (diff)
downloadprometheus-pgbouncer-exporter-730f895edee9a6201741b4e511c2572fcb56649d.tar
prometheus-pgbouncer-exporter-730f895edee9a6201741b4e511c2572fcb56649d.tar.gz
Add one test, at least
Diffstat (limited to 'prometheus_pgbouncer_exporter')
-rw-r--r--prometheus_pgbouncer_exporter/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/prometheus_pgbouncer_exporter/utils.py b/prometheus_pgbouncer_exporter/utils.py
index 3a99695..ea69f46 100644
--- a/prometheus_pgbouncer_exporter/utils.py
+++ b/prometheus_pgbouncer_exporter/utils.py
@@ -16,7 +16,7 @@ import psycopg2
def get_connection(user=None, port=None, host=None, dbname='pgbouncer', password=None):
kwargs = { 'user': user, 'port': port, 'host': host, 'dbname': dbname, 'password': password }
- kwargs = dict([(k, v) for k, v in kwargs.iteritems() if v])
+ kwargs = dict([(k, v) for k, v in kwargs.items() if v])
connection = psycopg2.connect(
**kwargs
)