You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by ij...@apache.org on 2017/09/08 18:05:32 UTC

kafka git commit: KAFKA-5742; Fix incorrect method name follow-up

Repository: kafka
Updated Branches:
  refs/heads/trunk 5d73b37b1 -> 6e4045586


KAFKA-5742; Fix incorrect method name follow-up

Author: Xavier Léauté <xl...@xvrl.net>

Reviewers: Ismael Juma <is...@juma.me.uk>

Closes #3818 from xvrl/fix-startswith


Project: http://git-wip-us.apache.org/repos/asf/kafka/repo
Commit: http://git-wip-us.apache.org/repos/asf/kafka/commit/6e404558
Tree: http://git-wip-us.apache.org/repos/asf/kafka/tree/6e404558
Diff: http://git-wip-us.apache.org/repos/asf/kafka/diff/6e404558

Branch: refs/heads/trunk
Commit: 6e4045586212812165693840b68d7577a05b890a
Parents: 5d73b37
Author: Xavier Léauté <xl...@xvrl.net>
Authored: Fri Sep 8 19:04:55 2017 +0100
Committer: Ismael Juma <is...@juma.me.uk>
Committed: Fri Sep 8 19:05:01 2017 +0100

----------------------------------------------------------------------
 tests/kafkatest/services/zookeeper.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kafka/blob/6e404558/tests/kafkatest/services/zookeeper.py
----------------------------------------------------------------------
diff --git a/tests/kafkatest/services/zookeeper.py b/tests/kafkatest/services/zookeeper.py
index dcf0eb8..b181a12 100644
--- a/tests/kafkatest/services/zookeeper.py
+++ b/tests/kafkatest/services/zookeeper.py
@@ -119,7 +119,7 @@ class ZookeeperService(KafkaPathResolverMixin, Service):
 
 
     def connect_setting(self, chroot=None):
-        if chroot and not chroot.starts_with("/"):
+        if chroot and not chroot.startswith("/"):
             raise Exception("ZK chroot must start with '/', invalid chroot: %s" % chroot)
 
         chroot = '' if chroot is None else chroot
@@ -138,7 +138,7 @@ class ZookeeperService(KafkaPathResolverMixin, Service):
         """
         Queries zookeeper for data associated with 'path' and returns all fields in the schema
         """
-        if chroot and not chroot.starts_with("/"):
+        if chroot and not chroot.startswith("/"):
             raise Exception("ZK chroot must start with '/', invalid chroot: %s" % chroot)
 
         chroot_path = ('' if chroot is None else chroot) + path