kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cmcc...@apache.org
Subject [kafka] branch 2.0 updated: MINOR: Split at first occurrence of '=' in kafka.py props parsing (#5549) (#7042)
Date Mon, 08 Jul 2019 21:35:21 GMT
This is an automated email from the ASF dual-hosted git repository.

cmccabe pushed a commit to branch 2.0
in repository https://gitbox.apache.org/repos/asf/kafka.git


The following commit(s) were added to refs/heads/2.0 by this push:
     new ce1d3cd  MINOR: Split at first occurrence of '=' in kafka.py props parsing (#5549)
(#7042)
ce1d3cd is described below

commit ce1d3cd644e42dabef334e989e6ed36a2b8cc604
Author: Konstantine Karantasis <konstantine@confluent.io>
AuthorDate: Mon Jul 8 23:34:47 2019 +0200

    MINOR: Split at first occurrence of '=' in kafka.py props parsing (#5549) (#7042)
    
    This is a fix to #5226 to account for config properties that have an
    equal char in the value.   Otherwise if there is one
    equal char in the value the following error occurs:
    
    dictionary update sequence element #XX has length 3; 2 is required
    
    Reviewers: Colin Patrick McCabe <colin@cmccabe.xyz>, Ismael Juma <ismael@juma.me.uk>
---
 tests/kafkatest/services/kafka/kafka.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/kafkatest/services/kafka/kafka.py b/tests/kafkatest/services/kafka/kafka.py
index b2289fd..a59bb71 100644
--- a/tests/kafkatest/services/kafka/kafka.py
+++ b/tests/kafkatest/services/kafka/kafka.py
@@ -221,7 +221,7 @@ class KafkaService(KafkaPathResolverMixin, JmxMixin, Service):
         config_template = self.render('kafka.properties', node=node, broker_id=self.idx(node),
                                  security_config=self.security_config, num_nodes=self.num_nodes)
 
-        configs = dict( l.rstrip().split('=') for l in config_template.split('\n')
+        configs = dict( l.rstrip().split('=', 1) for l in config_template.split('\n')
                         if not l.startswith("#") and "=" in l )
 
         #load specific test override configs


Mime
View raw message