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(
144
144
"max_pool_size" : max_pool_size ,
145
145
}
146
146
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
152
148
if host is not None :
153
149
kwargs ["base_url" ] = host
154
150
Original file line number Diff line number Diff line change @@ -144,6 +144,7 @@ def __init__(
144
144
class InvalidArgument (PodmanError ):
145
145
"""Parameter to method/function was not valid."""
146
146
147
+
147
148
class PodmanConnectionError (PodmanError ):
148
149
"""Exception raised when connection to Podman service fails using environment configuration."""
149
150
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ def test_login(self):
64
64
def test_from_env (self ):
65
65
"""integration: from_env() no error"""
66
66
PodmanClient .from_env ()
67
-
67
+
68
68
def test_from_env_exceptions (self ):
69
69
"""integration: from_env() returns exceptions"""
70
70
with self .assertRaises (PodmanConnectionError ):
You can’t perform that action at this time.
0 commit comments