We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e264db commit d602648Copy full SHA for d602648
packages/service-library/src/servicelib/docker_utils.py
@@ -124,7 +124,7 @@ def get_image_complete_url(
124
# NOTE: entries like nginx:latest or ngingx:1.3 will raise an exception here
125
url = URL(f"https://{image}")
126
assert url.host # nosec
127
- if not url.port or "." not in url.host:
+ if not url.port or ("." not in f"{url.host}"):
128
# this is Dockerhub + official images are in /library
129
url = _create_docker_hub_complete_url(image)
130
except ValueError:
0 commit comments