Fix bug 2150 to encrypt correct WIM account password field and check WIM accounts.
Change-Id: I424453286bd057b3c95d5a1bc839ced3ac72ba50
Signed-off-by: gifrerenom <lluis.gifre@cttc.es>
diff --git a/osm_nbi/instance_topics.py b/osm_nbi/instance_topics.py
index 16bd406..c60445f 100644
--- a/osm_nbi/instance_topics.py
+++ b/osm_nbi/instance_topics.py
@@ -1602,7 +1602,7 @@
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: