mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +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
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue