We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1ec10f commit e3bced5Copy full SHA for e3bced5
confluent_kafka/admin/__init__.py
@@ -556,17 +556,17 @@ class PartitionMetadata (object):
556
of a broker id in the brokers dict.
557
"""
558
def __init__(self):
559
- self.partition = -1
+ self.id = -1
560
self.leader = -1
561
self.replicas = []
562
self.isrs = []
563
self.error = None
564
565
def __repr__(self):
566
if self.error is not None:
567
- return "PartitionMetadata({}, {})".format(self.partition, self.error)
+ return "PartitionMetadata({}, {})".format(self.id, self.error)
568
else:
569
- return "PartitionMetadata({})".format(self.partition)
+ return "PartitionMetadata({})".format(self.id)
570
571
def __str__(self):
572
- return "{}".format(self.partition)
+ return "{}".format(self.id)
0 commit comments