From: gifrerenom Date: Mon, 7 Mar 2022 16:57:25 +0000 (+0000) Subject: Fix bug 1901 to encrypt correct WIM account password field and check WIM accounts. X-Git-Tag: v10.1.1-rc1~5 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=c59fac381e30c75518730f9bbb49bc92e5005dea;hp=b7945ed494e016a9c9a788d24aa013c96631554f;p=osm%2FNBI.git Fix bug 1901 to encrypt correct WIM account password field and check WIM accounts. Change-Id: I424453286bd057b3c95d5a1bc839ced3ac72ba50 Signed-off-by: gifrerenom --- diff --git a/osm_nbi/admin_topics.py b/osm_nbi/admin_topics.py index 786d237..07657ca 100644 --- a/osm_nbi/admin_topics.py +++ b/osm_nbi/admin_topics.py @@ -522,7 +522,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 = {} diff --git a/osm_nbi/instance_topics.py b/osm_nbi/instance_topics.py index dbdc583..8f34051 100644 --- a/osm_nbi/instance_topics.py +++ b/osm_nbi/instance_topics.py @@ -1354,7 +1354,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: