Skip to content

Commit

Permalink
fix: use mc-endpoint as given by user rather than inferring fqdn
Browse files Browse the repository at this point in the history
  • Loading branch information
dianagudu committed Sep 27, 2024
1 parent f9b5c46 commit 600d67e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions mccli/motley_cue_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,11 +249,6 @@ def is_valid_mc_url(mc_endpoint, verify=True):
"""
try:
logger.info(f"Looking for motley_cue service at '{mc_endpoint}'...")
parse_result = urlparse(mc_endpoint)
fqdn_host = socket.getfqdn(parse_result.host)
if fqdn_host and fqdn_host != parse_result.host:
mc_endpoint = parse_result.copy_with(host=fqdn_host).unsplit()
logger.info(f"Using FQDN for host: {mc_endpoint}")

# a timeout is necessary here e.g. when the firewall drops packages
resp = requests.get(mc_endpoint, verify=verify, timeout=TIMEOUT)
Expand Down

0 comments on commit 600d67e

Please sign in to comment.