summaryrefslogtreecommitdiffstats
path: root/vio
diff options
context:
space:
mode:
authorEthan Lynn <xuanlangjian@gmail.com>2019-09-12 22:59:16 +0800
committerEthan Lynn <xuanlangjian@gmail.com>2019-09-12 22:59:54 +0800
commit4f76effde49b53b2d45e6f4096089a3e20999763 (patch)
treeba2a7edf8ee498c4adc9003e0d133025eee54665 /vio
parentf13b071e10f879554e915986cd27e31328945785 (diff)
Fix CSIT issue
Fix csit issue Change-Id: Ibdad7d6e73d4d2db858d58df92baa5cbc3604b50 Issue-ID: MULTICLOUD-736 Signed-off-by: Ethan Lynn <xuanlangjian@gmail.com>
Diffstat (limited to 'vio')
-rw-r--r--vio/pecan-requirements.txt5
-rwxr-xr-xvio/vio/event_listener/server.py6
2 files changed, 7 insertions, 4 deletions
diff --git a/vio/pecan-requirements.txt b/vio/pecan-requirements.txt
index 1826aef..40ac865 100644
--- a/vio/pecan-requirements.txt
+++ b/vio/pecan-requirements.txt
@@ -6,4 +6,7 @@ oslo.config>=4.11.0
oslo.service>=1.25.0
# for event
-oslo_messaging
+oslo.messaging>=5.29.0 # Apache-2.0
+oslo.i18n>=3.15.3 # Apache-2.0
+
+uwsgi
diff --git a/vio/vio/event_listener/server.py b/vio/vio/event_listener/server.py
index 02d5bf8..20b5444 100755
--- a/vio/vio/event_listener/server.py
+++ b/vio/vio/event_listener/server.py
@@ -14,9 +14,9 @@
from oslo_config import cfg
from oslo_log import log as logging
-from i18n import _LI
+from vio.event_listener.i18n import _LI
import oslo_messaging
-import ConfigParser
+import configparser
import json
import os
import requests
@@ -47,7 +47,7 @@ instance_usage_audit_period=hour
def getConfig(section, key):
- config = ConfigParser.ConfigParser()
+ config = configparser.ConfigParser()
path = os.path.split(os.path.realpath(__file__))[0] + '/listener.conf'
config.read(path)
return config.get(section, key)