summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)