upstream/openstack/openstack-aodh/centos/patches/0002-Add-drivername-support-for-postgresql-connection-set.patch
Hayde Martinez 748f79bce2 upgrade openstack-aodh to CentOS 7.5 version
Story: 2003389
Task: 24484

Change-Id: Ib28868c38da6264ca3b05bef6aa5ad7d9b372cf5
Signed-off-by: Hayde Martinez <hayde.martinez.landa@intel.com>
2018-09-09 07:02:52 +08:00

38 lines
1.2 KiB
Diff

From c322e9795933ff8665d7590f082672bd839df431 Mon Sep 17 00:00:00 2001
From: Al Bailey <Al.Bailey@windriver.com>
Date: Thu, 21 Dec 2017 13:38:09 -0600
Subject: [PATCH 2/2] Add drivername support for postgresql connection settings
---
aodh/api/aodh-api.py | 3 +--
setup.cfg | 1 +
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/aodh/api/aodh-api.py b/aodh/api/aodh-api.py
index 565f2e3..7c413d6 100644
--- a/aodh/api/aodh-api.py
+++ b/aodh/api/aodh-api.py
@@ -2,6 +2,5 @@ from aodh.api import app as build_wsgi_app
import sys
sys.argv = sys.argv[:1]
-args = {'config_file' : 'etc/aodh/aodh.conf', }
+args = {'config_file': 'etc/aodh/aodh.conf', }
application = build_wsgi_app.build_wsgi_app(None, args)
-
diff --git a/setup.cfg b/setup.cfg
index 5bfc817..8f8db57 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -64,6 +64,7 @@ aodh.storage =
mysql = aodh.storage.impl_sqlalchemy:Connection
mysql+pymysql = aodh.storage.impl_sqlalchemy:Connection
postgresql = aodh.storage.impl_sqlalchemy:Connection
+ postgresql+psycopg2 = aodh.storage.impl_sqlalchemy:Connection
sqlite = aodh.storage.impl_sqlalchemy:Connection
aodh.alarm.rule =
threshold = aodh.api.controllers.v2.alarm_rules.threshold:AlarmThresholdRule
--
2.7.4