From: Philip Joseph Date: Wed, 26 Jul 2017 08:58:57 +0000 (+0530) Subject: Bug 323 : Config agent account not deleted properly X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F42%2F2042%2F1;p=osm%2FSO.git Bug 323 : Config agent account not deleted properly Signed-off-by: Philip Joseph --- diff --git a/rwcm/plugins/rwconman/rift/tasklets/rwconmantasklet/rwconman_conagent.py b/rwcm/plugins/rwconman/rift/tasklets/rwconmantasklet/rwconman_conagent.py index 5578a357..b1e1667a 100644 --- a/rwcm/plugins/rwconman/rift/tasklets/rwconmantasklet/rwconman_conagent.py +++ b/rwcm/plugins/rwconman/rift/tasklets/rwconmantasklet/rwconman_conagent.py @@ -192,7 +192,7 @@ class RiftCMConfigAgent(object): def _on_config_agent_delete(self, config_agent): self._log.debug("Got nsm plugin config agent delete, account: %s, type: %s", config_agent.name, config_agent.account_type) - cap_name = config_agent.account_type + cap_name = config_agent.name if cap_name in self._plugin_instances: self._log.debug("Config agent nsm plugin exists, deleting it.") del self._plugin_instances[cap_name]