bug 710. Fix session used to delete ns, nsi when terminated 76/7576/3
authortierno <alfonso.tiernosepulveda@telefonica.com>
Wed, 29 May 2019 21:39:37 +0000 (21:39 +0000)
committertierno <alfonso.tiernosepulveda@telefonica.com>
Thu, 30 May 2019 14:20:03 +0000 (15:20 +0100)
Change-Id: Ic0bc04c161e75e872167fbb69e36a24891def47b
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
osm_nbi/subscriptions.py

index 7df78d2..557bf80 100644 (file)
@@ -57,10 +57,12 @@ class SubscriptionThread(threading.Thread):
         self.logger = logging.getLogger("nbi.subscriptions")
         self.aiomain_task = None  # asyncio task for receiving kafka bus
         self.internal_session = {  # used for a session to the engine methods
         self.logger = logging.getLogger("nbi.subscriptions")
         self.aiomain_task = None  # asyncio task for receiving kafka bus
         self.internal_session = {  # used for a session to the engine methods
-            "_id": "subscription",
-            "id": "subscription",
-            "project_id": "admin",
-            "admin": True
+            "project_id": (),
+            "set_project": (),
+            "admin": True,
+            "force": False,
+            "public": None,
+            "method": "delete",
         }
 
     def run(self):
         }
 
     def run(self):