outposts: fix possible recursion error in docker controller
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
fb6242d2d3
commit
72f5a4c460
|
@ -81,9 +81,12 @@ class DockerController(BaseController):
|
||||||
True,
|
True,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# pylint: disable=too-many-return-statements
|
||||||
def up(self):
|
def up(self):
|
||||||
try:
|
try:
|
||||||
container, has_been_created = self._get_container()
|
container, has_been_created = self._get_container()
|
||||||
|
if has_been_created:
|
||||||
|
return None
|
||||||
# Check if the container is out of date, delete it and retry
|
# Check if the container is out of date, delete it and retry
|
||||||
if len(container.image.tags) > 0:
|
if len(container.image.tags) > 0:
|
||||||
tag: str = container.image.tags[0]
|
tag: str = container.image.tags[0]
|
||||||
|
|
Reference in New Issue