X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_lcm%2Flcm.py;h=83efbca9ddc78b126c378b1052893f370e31f637;hb=9302891f694ef883e41e179f8767c4c82b9b0eab;hp=c679add498e4e042349da939a5fd1e0a074e0d7d;hpb=09682c03bb6faed2a1c97fd166c0637b0270174d;p=osm%2FLCM.git diff --git a/osm_lcm/lcm.py b/osm_lcm/lcm.py index c679add..83efbca 100644 --- a/osm_lcm/lcm.py +++ b/osm_lcm/lcm.py @@ -283,8 +283,9 @@ class Lcm: vim_account_RO[k] = vim_content[k] if "vim_user" in vim_content: vim_content["vim_username"] = vim_content["vim_user"] - if vim_account_RO: - await RO.edit("vim_account", RO_vim_id, descriptor=vim_account_RO) + # vim_account must be edited always even if empty in order to ensure changes are translated to RO + # vim_thread. RO will remove and relaunch a new thread for this vim_account + await RO.edit("vim_account", RO_vim_id, descriptor=vim_account_RO) db_vim["_admin"]["operationalState"] = "ENABLED" self.update_db("vim_accounts", vim_id, db_vim)