Skip to content

Commit

Permalink
Merge pull request #7 from marctc/patch-1
Browse files Browse the repository at this point in the history
Fix TypeError when you try to replace default port
  • Loading branch information
Marco Pracucci authored Aug 30, 2018
2 parents 8332999 + dba3605 commit b9a79f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prometheus_pgbouncer_exporter/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def getExporterHost(self):
return self.config["exporter_host"] if "exporter_host" in self.config else "127.0.0.1"

def getExporterPort(self):
return self.config["exporter_port"] if "exporter_port" in self.config else 9100
return int(self.config["exporter_port"]) if "exporter_port" in self.config else 9100

def getPgbouncers(self):
# Lazy instance pgbouncer config
Expand Down

0 comments on commit b9a79f8

Please sign in to comment.