outposts: don't start docker container for embedded outpost

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-08-15 18:10:49 +02:00
parent 051016f613
commit b35e62e5ae

View file

@ -102,6 +102,8 @@ class DockerController(BaseController):
# pylint: disable=too-many-return-statements
def up(self):
if self.outpost.managed != "":
return None
try:
container, has_been_created = self._get_container()
if has_been_created:
@ -165,6 +167,8 @@ class DockerController(BaseController):
raise ControllerException(str(exc)) from exc
def down(self):
if self.outpost.managed != "":
return None
try:
container, _ = self._get_container()
if container.status == "running":