File tree Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -144,11 +144,7 @@ def from_env(
144144 "max_pool_size" : max_pool_size ,
145145 }
146146
147- host = (
148- environment .get ("CONTAINER_HOST" )
149- or environment .get ("DOCKER_HOST" )
150- or None
151- )
147+ host = environment .get ("CONTAINER_HOST" ) or environment .get ("DOCKER_HOST" ) or None
152148 if host is not None :
153149 kwargs ["base_url" ] = host
154150
Original file line number Diff line number Diff line change @@ -144,6 +144,7 @@ def __init__(
144144class InvalidArgument (PodmanError ):
145145 """Parameter to method/function was not valid."""
146146
147+
147148class PodmanConnectionError (PodmanError ):
148149 """Exception raised when connection to Podman service fails using environment configuration."""
149150
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ def test_login(self):
6464 def test_from_env (self ):
6565 """integration: from_env() no error"""
6666 PodmanClient .from_env ()
67-
67+
6868 def test_from_env_exceptions (self ):
6969 """integration: from_env() returns exceptions"""
7070 with self .assertRaises (PodmanConnectionError ):
You can’t perform that action at this time.
0 commit comments