Skip to content

Commit d602648

Browse files
committed
linter
1 parent 8e264db commit d602648

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/service-library/src/servicelib/docker_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def get_image_complete_url(
124124
# NOTE: entries like nginx:latest or ngingx:1.3 will raise an exception here
125125
url = URL(f"https://{image}")
126126
assert url.host # nosec
127-
if not url.port or "." not in url.host:
127+
if not url.port or ("." not in f"{url.host}"):
128128
# this is Dockerhub + official images are in /library
129129
url = _create_docker_hub_complete_url(image)
130130
except ValueError:

0 commit comments

Comments
 (0)