Add the command that registers to the SMO; Make the create registration and create...
[pti/o2.git] / o2ims / service / command / notify_handler.py
index 3ece84a..9555623 100644 (file)
 #  limitations under the License.\r
 \r
 import json\r
-import redis\r
+import redis\r
 # import requests\r
 import http.client\r
 from urllib.parse import urlparse\r
 \r
-from o2common.config import config\r
+from o2common.config import config\r
 from o2common.service.unit_of_work import AbstractUnitOfWork\r
 from o2ims.domain import commands\r
 from o2ims.domain.subscription_obj import Subscription, Message2SMO\r
@@ -26,8 +26,8 @@ from o2ims.domain.subscription_obj import Subscription, Message2SMO
 from o2common.helper import o2logging\r
 logger = o2logging.get_logger(__name__)\r
 \r
-# Maybe another MQ server\r
-r = redis.Redis(**config.get_redis_host_and_port())\r
+# Maybe another MQ server\r
+r = redis.Redis(**config.get_redis_host_and_port())\r
 \r
 \r
 def notify_change_to_smo(\r