Fix bug 2150 to encrypt correct WIM account password field and check WIM accounts. 09/12509/1
authorgifrerenom <lluis.gifre@cttc.es>
Mon, 7 Mar 2022 16:57:25 +0000 (16:57 +0000)
committergifrerenom <lluis.gifre@cttc.es>
Wed, 31 Aug 2022 09:52:31 +0000 (09:52 +0000)
Change-Id: I424453286bd057b3c95d5a1bc839ced3ac72ba50
Signed-off-by: gifrerenom <lluis.gifre@cttc.es>
osm_nbi/admin_topics.py
osm_nbi/instance_topics.py

index 8eccd20..b695693 100644 (file)
@@ -568,7 +568,7 @@ class WimAccountTopic(CommonVimWimSdn):
     schema_new = wim_account_new_schema
     schema_edit = wim_account_edit_schema
     multiproject = True
-    password_to_encrypt = "wim_password"
+    password_to_encrypt = "password"
     config_to_encrypt = {}
 
 
index 16bd406..c60445f 100644 (file)
@@ -1602,7 +1602,7 @@ class NsLcmOpTopic(BaseTopic):
         if wim_account in wim_accounts:
             return
         try:
-            db_filter = self._get_project_filter(session, write=False, show_all=True)
+            db_filter = self._get_project_filter(session)
             db_filter["_id"] = wim_account
             self.db.get_one("wim_accounts", db_filter)
         except Exception: