From a94ac66079446bbc06b6e1c462166fea447de115 Mon Sep 17 00:00:00 2001 From: Michael Jerger Date: Wed, 28 Jun 2023 08:22:51 +0200 Subject: [PATCH] adjust private to public by conv --- src/main/python/ddadevops/domain/devops_factory.py | 8 ++++---- src/main/python/ddadevops/domain/init_service.py | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/python/ddadevops/domain/devops_factory.py b/src/main/python/ddadevops/domain/devops_factory.py index 915bc4c..12431d1 100644 --- a/src/main/python/ddadevops/domain/devops_factory.py +++ b/src/main/python/ddadevops/domain/devops_factory.py @@ -13,8 +13,8 @@ class DevopsFactory: pass def build_devops(self, inp: dict, version: Optional[Version] = None) -> Devops: - build_types = self.__parse_build_types__(inp["build_types"]) - mixin_types = self.__parse_mixin_types__(inp["mixin_types"]) + build_types = self.parse_build_types(inp["build_types"]) + mixin_types = self.parse_mixin_types(inp["mixin_types"]) specialized_builds: Dict[BuildType, Validateable] = {} if BuildType.IMAGE in build_types: @@ -39,13 +39,13 @@ class DevopsFactory: def merge(self, inp: dict, context: dict, authorization: dict) -> dict: return {} | context | authorization | inp - def __parse_build_types__(self, build_types: List[str]) -> List[BuildType]: + def parse_build_types(self, build_types: List[str]) -> List[BuildType]: result = [] for build_type in build_types: result += [BuildType[build_type]] return result - def __parse_mixin_types__(self, mixin_types: List[str]) -> List[MixinType]: + def parse_mixin_types(self, mixin_types: List[str]) -> List[MixinType]: result = [] for mixin_type in mixin_types: result += [MixinType[mixin_type]] diff --git a/src/main/python/ddadevops/domain/init_service.py b/src/main/python/ddadevops/domain/init_service.py index b4a86b3..2d5ab56 100644 --- a/src/main/python/ddadevops/domain/init_service.py +++ b/src/main/python/ddadevops/domain/init_service.py @@ -38,10 +38,10 @@ class InitService: ) def initialize(self, inp: dict) -> Devops: - build_types = self.devops_factory.__parse_build_types__( + build_types = self.devops_factory.parse_build_types( inp.get("build_types", []) ) - mixin_types = self.devops_factory.__parse_mixin_types__( + mixin_types = self.devops_factory.parse_mixin_types( inp.get("mixin_types", []) ) provider_types = TerraformDomain.parse_provider_types(