From 32a835a8a9a6cc230e84ee4ec2de20f234f8bed1 Mon Sep 17 00:00:00 2001 From: Noah Beard Date: Mon, 8 Aug 2022 09:53:51 -0400 Subject: [PATCH] Fix kwargs in default builder not being unpacked correctly --- awsiot/mqtt_connection_builder.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/awsiot/mqtt_connection_builder.py b/awsiot/mqtt_connection_builder.py index cb3b160b..c4ae8d28 100644 --- a/awsiot/mqtt_connection_builder.py +++ b/awsiot/mqtt_connection_builder.py @@ -512,11 +512,11 @@ def new_default_builder(**kwargs) -> awscrt.mqtt.Connection: This builder creates an :class:`awscrt.mqtt.Connection`, without any configuration besides the default TLS context options. This requires setting the connection details manually by passing all the necessary data - in :mod:`common arguments` to make a connection + in :mod:`common arguments` to make a connection. """ - _check_required_kwargs(kwargs) + _check_required_kwargs(**kwargs) tls_ctx_options = awscrt.io.TlsContextOptions() return _builder(tls_ctx_options=tls_ctx_options, use_websockets=False, - kwargs=kwargs) + **kwargs)