outposts: pass outpost reference instead of PK, implement TaskResult.uid

This commit is contained in:
Jens Langhammer
2020-10-16 12:54:52 +02:00
parent 86cfb10b9b
commit fa504e4bf9
7 changed files with 27 additions and 22 deletions

View File

@ -8,6 +8,7 @@ from yaml import safe_dump
from passbook import __version__
from passbook.outposts.controllers.base import BaseController, ControllerException
from passbook.outposts.models import Outpost
class DockerController(BaseController):
@ -19,8 +20,8 @@ class DockerController(BaseController):
image_base = "beryju/passbook"
def __init__(self, outpost_pk: str) -> None:
super().__init__(outpost_pk)
def __init__(self, outpost: Outpost) -> None:
super().__init__(outpost)
self.client = from_env()
def _get_env(self) -> Dict[str, str]: