We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9371ea8 commit 184dca3Copy full SHA for 184dca3
1 file changed
aws_advanced_python_wrapper/failover_plugin.py
@@ -325,12 +325,12 @@ def _failover_writer(self):
325
326
writer_host = self._get_writer(result.topology)
327
allowed_hosts = self._plugin_service.hosts
328
- allowed_hostnames = [host.host for host in allowed_hosts]
+ allowed_hostnames = [host.get_host_and_port() for host in allowed_hosts]
329
if writer_host.get_host_and_port() not in allowed_hostnames:
330
raise FailoverFailedError(
331
Messages.get_formatted(
332
"FailoverPlugin.NewWriterNotAllowed",
333
- "<null>" if writer_host is None else writer_host.host,
+ "<null>" if writer_host is None else writer_host.get_host_and_port(),
334
LogUtils.log_topology(allowed_hosts)))
335
336
self._plugin_service.set_current_connection(result.new_connection, writer_host)
0 commit comments