outposts: don't try to create docker client for embedded outpost
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
8a8aafec81
commit
7859145138
|
@ -24,6 +24,8 @@ class DockerController(BaseController):
|
||||||
|
|
||||||
def __init__(self, outpost: Outpost, connection: DockerServiceConnection) -> None:
|
def __init__(self, outpost: Outpost, connection: DockerServiceConnection) -> None:
|
||||||
super().__init__(outpost, connection)
|
super().__init__(outpost, connection)
|
||||||
|
if outpost.managed == MANAGED_OUTPOST:
|
||||||
|
return
|
||||||
try:
|
try:
|
||||||
self.client = connection.client()
|
self.client = connection.client()
|
||||||
except ServiceConnectionInvalid as exc:
|
except ServiceConnectionInvalid as exc:
|
||||||
|
|
Reference in a new issue