Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7fceb1b

Browse filesBrowse files
committed
Pass host as kwarg to get_sasl_mechanism
1 parent e2b6693 commit 7fceb1b
Copy full SHA for 7fceb1b

File tree

Expand file treeCollapse file tree

1 file changed

+1
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-2
lines changed

‎kafka/conn.py

Copy file name to clipboardExpand all lines: kafka/conn.py
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,6 @@ def __init__(self, host, port, afi, **configs):
256256
for key in self.config:
257257
if key in configs:
258258
self.config[key] = configs[key]
259-
self.config['host'] = host
260259

261260
self.node_id = self.config.pop('node_id')
262261

@@ -314,7 +313,7 @@ def __init__(self, host, port, afi, **configs):
314313

315314
def _init_sasl_mechanism(self):
316315
if self.config['security_protocol'] in ('SASL_PLAINTEXT', 'SASL_SSL'):
317-
self._sasl_mechanism = get_sasl_mechanism(self.config['sasl_mechanism'])(**self.config)
316+
self._sasl_mechanism = get_sasl_mechanism(self.config['sasl_mechanism'])(host=self.host, **self.config)
318317
else:
319318
self._sasl_mechanism = None
320319

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.