Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update host connect method to handle IPv6 address #351

Merged
merged 1 commit into from
Feb 13, 2025

Conversation

shubhamsg199
Copy link
Contributor

Problem Statement :

The connect method does not work with IPv6 addresses. It returns an error

Solution :

Update host connect method to handle IPv6 address

broker/hosts.py Outdated
@@ -126,8 +126,9 @@ def connect(
_port = self.port or port
key_filename = key_filename or self.key_filename
if ":" in self.hostname:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe easier if we just do something like this

Suggested change
if ":" in self.hostname:
if ":" in self.hostname and not ipv6:

Signed-off-by: Shubham Ganar <sganar@redhat.com>
@JacobCallahan JacobCallahan merged commit e3eb993 into SatelliteQE:master Feb 13, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants