summaryrefslogtreecommitdiffstats
path: root/components/pm-subscription-handler/pmsh_service
diff options
context:
space:
mode:
authoregernug <gerard.nugent@est.tech>2021-03-22 10:12:59 +0000
committeregernug <gerard.nugent@est.tech>2021-03-22 10:12:59 +0000
commiteaf9339670850e5321ad65519022d7f322e965a2 (patch)
treeaac1dc5c219f46766a9aa8e46c4d949629011fc9 /components/pm-subscription-handler/pmsh_service
parenta652db5d8c8fb8a353893cf0e8c811cf0f3448e6 (diff)
[PMSH] Update to package version and url for Postgres
Issue-ID: INT-1865 Signed-off-by: egernug <gerard.nugent@est.tech> Change-Id: I0e0f72a1eb416269be462e67d3d221e49fe63120
Diffstat (limited to 'components/pm-subscription-handler/pmsh_service')
-rw-r--r--components/pm-subscription-handler/pmsh_service/mod/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/pm-subscription-handler/pmsh_service/mod/__init__.py b/components/pm-subscription-handler/pmsh_service/mod/__init__.py
index 58cd8b3c..505add06 100644
--- a/components/pm-subscription-handler/pmsh_service/mod/__init__.py
+++ b/components/pm-subscription-handler/pmsh_service/mod/__init__.py
@@ -93,7 +93,7 @@ def get_db_connection_url():
pg_user_pass = os.getenv('PMSH_PG_PASSWORD')
pmsh_db_name = os.getenv('PMSH_DB_NAME', 'pmsh')
pmsh_db_port = os.getenv('PMSH_PG_PORT', '5432')
- db_url = f'postgres+psycopg2://{quote(str(pg_user), safe="")}:' \
+ db_url = f'postgresql+psycopg2://{quote(str(pg_user), safe="")}:' \
f'{quote(str(pg_user_pass), safe="")}@{pg_host}:{pmsh_db_port}/{pmsh_db_name}'
if 'None' in db_url:
raise Exception(f'Invalid DB connection URL: {db_url} .. exiting app!')