'load the comma separated list of groups at the path defined by the
kv_groups config value and the node name add the node address to each
group found'

def load_groups_from_kv(self, node_data):

    node = node_data['Node']
    if self.config.has_config('kv_groups'):
        key = ('%s/%s/%s' % (self.config.kv_groups, self.current_dc, node['Node']))
        (index, groups) = self.consul_api.kv.get(key)
        if (groups and groups['Value']):
            for group in groups['Value'].split(','):
                self.add_node_to_map(self.nodes_by_kv, group.strip(), node)
