diff --git a/workers/buildlogsarchiver/models_interface.py b/workers/buildlogsarchiver/models_interface.py index d208f318d..123cf1679 100644 --- a/workers/buildlogsarchiver/models_interface.py +++ b/workers/buildlogsarchiver/models_interface.py @@ -8,6 +8,7 @@ class Build(namedtuple('Build', ['uuid', 'logs_archived'])): Build represents a single build in the build system. """ + @add_metaclass(ABCMeta) class BuildLogsArchiverWorkerDataInterface(object): """ @@ -34,4 +35,4 @@ class BuildLogsArchiverWorkerDataInterface(object): @abstractmethod def create_build_for_testing(self): """ Creates an unarchived build for testing of archiving. """ - pass \ No newline at end of file + pass diff --git a/workers/buildlogsarchiver/models_pre_oci.py b/workers/buildlogsarchiver/models_pre_oci.py index 89074c552..da3ce0774 100644 --- a/workers/buildlogsarchiver/models_pre_oci.py +++ b/workers/buildlogsarchiver/models_pre_oci.py @@ -1,6 +1,7 @@ from data import model from workers.buildlogsarchiver.models_interface import Build, BuildLogsArchiverWorkerDataInterface + class PreOCIModel(BuildLogsArchiverWorkerDataInterface): def get_archivable_build(self): build = model.build.get_archivable_build() @@ -27,4 +28,5 @@ class PreOCIModel(BuildLogsArchiverWorkerDataInterface): return Build(build.uuid, build.logs_archived) + pre_oci_model = PreOCIModel()