From 25a4135c4d3317962f53cedf92865e3e986798a2 Mon Sep 17 00:00:00 2001 From: Philip Joseph Date: Wed, 26 Jul 2017 14:28:57 +0530 Subject: [PATCH] Bug 323 : Config agent account not deleted properly Signed-off-by: Philip Joseph --- .../rwconman/rift/tasklets/rwconmantasklet/rwconman_conagent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] -- 2.25.1