Bug 323 : Config agent account not deleted properly 42/2042/1
authorPhilip Joseph <philip.joseph@riftio.com>
Wed, 26 Jul 2017 08:58:57 +0000 (14:28 +0530)
committerPhilip Joseph <philip.joseph@riftio.com>
Wed, 26 Jul 2017 09:02:05 +0000 (14:32 +0530)
Signed-off-by: Philip Joseph <philip.joseph@riftio.com>
rwcm/plugins/rwconman/rift/tasklets/rwconmantasklet/rwconman_conagent.py

index 5578a35..b1e1667 100644 (file)
@@ -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]