From 43d40c9b0bb2ce102df56f066774f65e0c4bc411 Mon Sep 17 00:00:00 2001 From: Helena McGough Date: Tue, 5 Dec 2017 10:09:44 +0000 Subject: [PATCH] Directory structure and documentation updates Change-Id: I4c30d4003cadb394e70db3bb83bf2258e2c68360 Signed-off-by: Helena McGough --- doc/MON_install_guide.rst | 2 +- osm_mon/core/message_bus/common_consumer | 2 +- osm_mon/plugins/OpenStack/Aodh/notifier.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/MON_install_guide.rst b/doc/MON_install_guide.rst index 22d4764..272e630 100644 --- a/doc/MON_install_guide.rst +++ b/doc/MON_install_guide.rst @@ -89,7 +89,7 @@ the plugins support. :: - lxc exec MON - python /root/MON/osm_mon/core/message_bus/common_consumer.py + lxc exec MON - python /root/MON/osm_mon/core/message_bus/common_consumer * To enable Aodh alarm notifications to be sent to SO: diff --git a/osm_mon/core/message_bus/common_consumer b/osm_mon/core/message_bus/common_consumer index e981184..bb8ce0c 100755 --- a/osm_mon/core/message_bus/common_consumer +++ b/osm_mon/core/message_bus/common_consumer @@ -24,7 +24,7 @@ import logging import sys import os -sys.path.insert(0, os.path.abspath('../')) +sys.path.append("/root/MON") logging.basicConfig(filename='MON_plugins.log', format='%(asctime)s %(message)s', diff --git a/osm_mon/plugins/OpenStack/Aodh/notifier.py b/osm_mon/plugins/OpenStack/Aodh/notifier.py index ad12ada..b1beaa7 100644 --- a/osm_mon/plugins/OpenStack/Aodh/notifier.py +++ b/osm_mon/plugins/OpenStack/Aodh/notifier.py @@ -42,7 +42,7 @@ logging.basicConfig(filename='aodh_notify.log', level=logging.INFO) log = logging.getLogger(__name__) -sys.path.insert(0, os.path.abspath('../')) +sys.path.append("/root/MON") from osm_mon.core.message_bus.producer import KafkaProducer -- 2.25.1