mirror of
https://github.com/thib8956/nginx-proxy
synced 2025-08-23 07:51:56 +00:00
chore: fix whitespace
This commit is contained in:
@@ -169,7 +169,7 @@ def container_ip(container: Container) -> str:
|
|||||||
net_info = container.attrs["NetworkSettings"]["Networks"]
|
net_info = container.attrs["NetworkSettings"]["Networks"]
|
||||||
if "bridge" in net_info:
|
if "bridge" in net_info:
|
||||||
return net_info["bridge"]["IPAddress"]
|
return net_info["bridge"]["IPAddress"]
|
||||||
|
|
||||||
# container is running in host network mode
|
# container is running in host network mode
|
||||||
if "host" in net_info:
|
if "host" in net_info:
|
||||||
return "127.0.0.1"
|
return "127.0.0.1"
|
||||||
@@ -186,7 +186,7 @@ def container_ipv6(container: Container) -> str:
|
|||||||
net_info = container.attrs["NetworkSettings"]["Networks"]
|
net_info = container.attrs["NetworkSettings"]["Networks"]
|
||||||
if "bridge" in net_info:
|
if "bridge" in net_info:
|
||||||
return net_info["bridge"]["GlobalIPv6Address"]
|
return net_info["bridge"]["GlobalIPv6Address"]
|
||||||
|
|
||||||
# container is running in host network mode
|
# container is running in host network mode
|
||||||
if "host" in net_info:
|
if "host" in net_info:
|
||||||
return "::1"
|
return "::1"
|
||||||
@@ -527,7 +527,7 @@ class DockerComposer(contextlib.AbstractContextManager):
|
|||||||
logging.debug(f"Full error message: {str(e)}")
|
logging.debug(f"Full error message: {str(e)}")
|
||||||
self._down() # Ensure proper cleanup even on failure
|
self._down() # Ensure proper cleanup even on failure
|
||||||
pytest.fail(f"Docker Compose setup failed due to Docker API error: {e.explanation}")
|
pytest.fail(f"Docker Compose setup failed due to Docker API error: {e.explanation}")
|
||||||
|
|
||||||
except RuntimeError as e:
|
except RuntimeError as e:
|
||||||
logging.error(f"RuntimeEror encountered in: {project_name}")
|
logging.error(f"RuntimeEror encountered in: {project_name}")
|
||||||
logging.debug(f"Full error message: {str(e)}")
|
logging.debug(f"Full error message: {str(e)}")
|
||||||
|
Reference in New Issue
Block a user