From b64858e0b3c9d971cd829593294f4a8340ccc242 Mon Sep 17 00:00:00 2001 From: Allen Lin37 Date: Thu, 20 Apr 2017 15:41:11 -0400 Subject: [PATCH] Removing unnecessary case if groups ever has a key of 'value' --- confluent_server/confluent/config/configmanager.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/confluent_server/confluent/config/configmanager.py b/confluent_server/confluent/config/configmanager.py index 71efda93..d9600a3a 100644 --- a/confluent_server/confluent/config/configmanager.py +++ b/confluent_server/confluent/config/configmanager.py @@ -896,11 +896,6 @@ class ConfigManager(object): if node not in self._cfgstore['nodes']: self._cfgstore['nodes'][node] = {'groups': [group]} _mark_dirtykey('nodes', node, self.tenant) - elif 'value' in self._cfgstore['nodes'][node]['groups']: - tmplist=self._cfgstore['nodes'][node]['groups']['value'].split(",") - tmplist.insert(0, unicode(group)) - self._cfgstore['nodes'][node]['groups']['value']=",".join(tmplist) - _mark_dirtykey('nodes', node, self.tenant) elif group not in self._cfgstore['nodes'][node]['groups']: self._cfgstore['nodes'][node]['groups'].insert(0, group) _mark_dirtykey('nodes', node, self.tenant)