Closed
Description
Describe the bug
new_default_builder function in mqtt_connection_builder.py (awsiot) doesn't pass kwargs argument as expected.
It called _check_required_kwargs and _builder functions with kwargs as a single argument and not as a dictionary (**kwargs), which fails the creation of a mqtt connection.
Expected Behavior
Pass kwargs as a dictionary (**kwargs)
Current Behavior
Pass kwargs as a single argument
Reproduction Steps
mqtt_connection = mqtt_connection_builder.new_default_builder(
endpoint=self.get_command_required(self.m_cmd_endpoint),
port=self.get_command_required("port"),
cert_filepath=None,
pri_key_filepath=None,
ca_filepath=None,
on_connection_interrupted=on_connection_interrupted,
on_connection_resumed=on_connection_resumed,
client_id=self.get_command_required("client_id"),
clean_session=False,
keep_alive_secs=30,
http_proxy_options=proxy_options)
Possible Solution
Fix new_default_builder function' calls (pass **kwargs instead o kwargs)
Additional Information/Context
No response
SDK version used
v2
Environment details (OS name and version, etc.)
Linux