|
|
|
@ -38,9 +38,15 @@ class InitService:
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
def initialize(self, inp: dict) -> Devops:
|
|
|
|
|
build_types = self.devops_factory.__parse_build_types__(inp.get("build_types", []))
|
|
|
|
|
mixin_types = self.devops_factory.__parse_mixin_types__(inp.get("mixin_types", []))
|
|
|
|
|
provider_types = TerraformDomain.parse_provider_types(inp.get("tf_provider_types", []))
|
|
|
|
|
build_types = self.devops_factory.__parse_build_types__(
|
|
|
|
|
inp.get("build_types", [])
|
|
|
|
|
)
|
|
|
|
|
mixin_types = self.devops_factory.__parse_mixin_types__(
|
|
|
|
|
inp.get("mixin_types", [])
|
|
|
|
|
)
|
|
|
|
|
provider_types = TerraformDomain.parse_provider_types(
|
|
|
|
|
inp.get("tf_provider_types", [])
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
version = None
|
|
|
|
|
default_mappings = []
|
|
|
|
@ -50,7 +56,7 @@ class InitService:
|
|
|
|
|
if BuildType.IMAGE in build_types:
|
|
|
|
|
default_mappings += Image.get_mapping_default()
|
|
|
|
|
if BuildType.TERRAFORM in build_types:
|
|
|
|
|
if ProviderType.DIGITALOCEAN in provider_types:
|
|
|
|
|
if ProviderType.DIGITALOCEAN in provider_types:
|
|
|
|
|
default_mappings += Digitalocean.get_mapping_default()
|
|
|
|
|
if ProviderType.HETZNER in provider_types:
|
|
|
|
|
default_mappings += Hetzner.get_mapping_default()
|
|
|
|
|