Skip to content
Snippets Groups Projects
Commit 7b6d7f12 authored by cuongmax's avatar cuongmax
Browse files

Fix bug read ns record: not found any nsr with filter


Change-Id: I4fc642080dcefe18a6465ef5536e0cab4f04de75
Signed-off-by: default avatarcuongmax <cuongbo97@gmail.com>
parent 586fe542
No related branches found
No related tags found
1 merge request!1Fix bug read ns record: not found any nsr with filter
Pipeline #1994 passed with stage
in 7 minutes and 48 seconds
......@@ -237,7 +237,7 @@ class NsLcm(LcmBase):
nsr_id = filter.get("_id")
# read ns record from database
nsr = self.db.get_one(table="nsrs", q_filter=filter)
nsr = self.db.get_one(table="nslcmops", q_filter=filter)
current_ns_status = nsr.get("nsState")
# get vca status for NS
......@@ -320,7 +320,7 @@ class NsLcm(LcmBase):
db_dict["nsState"] = "READY"
# write to database
self.update_db_2("nsrs", nsr_id, db_dict)
self.update_db_2("nslcmops", nsr_id, db_dict)
except (asyncio.CancelledError, asyncio.TimeoutError):
raise
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment