Fix wrong property name.

This commit is contained in:
Antoine Nguyen
2016-03-07 08:56:03 +01:00
parent 0eeae4b8a9
commit 9f9750082b

View File

@@ -81,7 +81,7 @@ class PostgreSQL(Database):
"""Setup .pgpass file."""
if self._pgpass_done:
return
if self.dbname not in ["localhost", "127.0.0.1"]:
if self.dbhost not in ["localhost", "127.0.0.1"]:
self._pgpass_done = True
return
pw = pwd.getpwnam(self.dbuser)