From d8e10b2fdada8a4f03c22e5ff66476041f488d58 Mon Sep 17 00:00:00 2001 From: Michael Jerger Date: Fri, 26 May 2023 13:06:04 +0200 Subject: [PATCH] improve readability --- src/main/python/ddadevops/domain/init_service.py | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/src/main/python/ddadevops/domain/init_service.py b/src/main/python/ddadevops/domain/init_service.py index 76a23db..702dd76 100644 --- a/src/main/python/ddadevops/domain/init_service.py +++ b/src/main/python/ddadevops/domain/init_service.py @@ -49,16 +49,11 @@ class InitService: default_mappings += C4k.get_mapping_default() if BuildType.IMAGE in build_types: default_mappings += Image.get_mapping_default() - if ( - BuildType.TERRAFORM in build_types - and ProviderType.DIGITALOCEAN in provider_types - ): - default_mappings += Digitalocean.get_mapping_default() - if ( - BuildType.TERRAFORM in build_types - and ProviderType.HETZNER in provider_types - ): - default_mappings += Hetzner.get_mapping_default() + if BuildType.TERRAFORM in build_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() if MixinType.RELEASE in mixin_types: primary_build_file_id = inp.get(