Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
diegolovison committed Aug 16, 2024
1 parent 521042d commit 2eef11b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sdk/python/kfp/dsl/component_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ def make_index_url_options(pip_index_urls: Optional[List[str]]) -> str:
index_url = pip_index_urls[0]
extra_index_urls = pip_index_urls[1:]

options = [f'--index-url {index_url} --trusted-host {urllib.parse.urlparse(index_url).hostname}']
options = [
f'--index-url {index_url} --trusted-host {urllib.parse.urlparse(index_url).hostname}'
]
options.extend(
f'--extra-index-url {extra_index_url} --trusted-host {urllib.parse.urlparse(extra_index_url).hostname}'
for extra_index_url in extra_index_urls)
Expand Down

0 comments on commit 2eef11b

Please sign in to comment.