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:
Jens Langhammer 2021-12-12 17:13:26 +01:00
parent 8a8aafec81
commit 7859145138

View file

@ -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: