summaryrefslogtreecommitdiff
path: root/kafka/structs.py
diff options
context:
space:
mode:
authorDana Powers <dana.powers@gmail.com>2016-07-16 11:58:58 -0700
committerDana Powers <dana.powers@gmail.com>2016-07-16 13:47:09 -0700
commit9960f3d8d2902ae0bb57262a6e530ed219168b2c (patch)
treee537d752796e43602eda0daac98aac8622efdb50 /kafka/structs.py
parent72bcadcaf106668ff275e03a12b9512ee4983547 (diff)
downloadkafka-python-9960f3d8d2902ae0bb57262a6e530ed219168b2c.tar.gz
Add rack to BrokerMetadata - it is always None when using MetadataRequest v0
Diffstat (limited to 'kafka/structs.py')
-rw-r--r--kafka/structs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kafka/structs.py b/kafka/structs.py
index 5902930..3188516 100644
--- a/kafka/structs.py
+++ b/kafka/structs.py
@@ -58,7 +58,7 @@ TopicPartition = namedtuple("TopicPartition",
["topic", "partition"])
BrokerMetadata = namedtuple("BrokerMetadata",
- ["nodeId", "host", "port"])
+ ["nodeId", "host", "port", "rack"])
PartitionMetadata = namedtuple("PartitionMetadata",
["topic", "partition", "leader", "replicas", "isr", "error"])