Skip to content

Commit 4979c57

Browse files
committed
Avoid useless warning
1 parent ac39b6b commit 4979c57

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

code/docker_info.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ def update_containers(self) -> List[ContainerInfos]:
175175
cont_info.backend_port = value
176176
else:
177177
cont_info.backend_port = TRAEFIK_DEFAULT_PORT
178+
if cont_info.backend_port is None:
178179
warn = 'Traefik host rule found but no backend port ' \
179180
'found for container %s : assume %s port.'
180181
logging.warning(warn,

0 commit comments

Comments
 (0)