mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Corrected custom port handling
This pillar was only able to connect to a Postgres DB running on the default port (5432) This commit extend this to a custom port
This commit is contained in:
parent
6bbd50c453
commit
78137c0860
@ -90,7 +90,8 @@ class POSTGRESExtPillar(SqlBaseExtPillar):
|
||||
conn = psycopg2.connect(host=_options['host'],
|
||||
user=_options['user'],
|
||||
password=_options['pass'],
|
||||
dbname=_options['db'])
|
||||
dbname=_options['db'],
|
||||
port=_options['port'])
|
||||
cursor = conn.cursor()
|
||||
try:
|
||||
yield cursor
|
||||
|
Loading…
Reference in New Issue
Block a user