adjust private to public by conv
This commit is contained in:
parent
f0f7ef87bd
commit
a94ac66079
2 changed files with 6 additions and 6 deletions
|
@ -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]]
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue