<#838 Fix org_from_endpoint for localhost endpoint...
# flyte-github
a
#838 Fix org_from_endpoint for localhost endpoints Pull request opened by pingsutw Summary • Fix
hostname_from_url
to correctly parse bare
host:port
inputs (e.g.
localhost:30080
) by prepending a dummy scheme so
urlparse
doesn't misinterpret the host as a scheme • Fix
org_from_endpoint
to strip port before extracting the org name and return the first domain part for any hostname, including
localhost
and two-part domains like
<http://bar.com|bar.com>
Test plan • Updated parametrized tests for
org_from_endpoint
to cover
localhost:30080
,
localhost:8000
,
<http://bar.com|bar.com>
etc. • All 38 endpoint tests pass locally flyteorg/flyte-sdk