improve readability

This commit is contained in:
Michael Jerger 2023-05-26 13:06:04 +02:00
parent 92e3181323
commit d8e10b2fda

View file

@ -49,16 +49,11 @@ class InitService:
default_mappings += C4k.get_mapping_default() default_mappings += C4k.get_mapping_default()
if BuildType.IMAGE in build_types: if BuildType.IMAGE in build_types:
default_mappings += Image.get_mapping_default() default_mappings += Image.get_mapping_default()
if ( if BuildType.TERRAFORM in build_types:
BuildType.TERRAFORM in build_types if ProviderType.DIGITALOCEAN in provider_types:
and ProviderType.DIGITALOCEAN in provider_types default_mappings += Digitalocean.get_mapping_default()
): if ProviderType.HETZNER in provider_types:
default_mappings += Digitalocean.get_mapping_default() default_mappings += Hetzner.get_mapping_default()
if (
BuildType.TERRAFORM in build_types
and ProviderType.HETZNER in provider_types
):
default_mappings += Hetzner.get_mapping_default()
if MixinType.RELEASE in mixin_types: if MixinType.RELEASE in mixin_types:
primary_build_file_id = inp.get( primary_build_file_id = inp.get(