breaking-change: dda-pallet-mixin -> dda-tenant-mixin

This commit is contained in:
jem 2020-05-01 17:38:05 +02:00
parent 37177961ae
commit 50f8e0d3eb
2 changed files with 5 additions and 5 deletions

View file

@ -28,7 +28,7 @@ use_plugin("python.distutils")
default_task = "publish" default_task = "publish"
name = "ddadevops" name = "ddadevops"
version = "0.6.2.dev0" version = "0.7.0.dev"
summary = "tools to support builds combining gopass, terraform, dda-pallet, aws & hetzner-cloud" summary = "tools to support builds combining gopass, terraform, dda-pallet, aws & hetzner-cloud"
description = __doc__ description = __doc__
authors = [Author("meissa GmbH", "buero@meissa-gmbh.de")] authors = [Author("meissa GmbH", "buero@meissa-gmbh.de")]

View file

@ -4,8 +4,8 @@ from .python_util import *
from .devops_build import DevopsBuild from .devops_build import DevopsBuild
def add_dda_pallet_mixin_config(config, tenant, application, domain_file_name): def add_dda_tenant_mixin_config(config, tenant, application, domain_file_name):
config.update({'DdaPalletMixin': config.update({'DdaTenantMixin':
{'tenant': tenant, {'tenant': tenant,
'application': application, 'application': application,
'domain_file_name': domain_file_name, 'domain_file_name': domain_file_name,
@ -20,11 +20,11 @@ def add_dda_pallet_mixin_config(config, tenant, application, domain_file_name):
return config return config
class DdaPalletMixin(DevopsBuild): class DdaTenantMixin(DevopsBuild):
def __init__(self, project, config): def __init__(self, project, config):
super().__init__(project, config) super().__init__(project, config)
dda_pallet_mixin_config = config['DdaPalletMixin'] dda_pallet_mixin_config = config['DdaTenantMixin']
self.tenant = dda_pallet_mixin_config['tenant'] self.tenant = dda_pallet_mixin_config['tenant']
self.application = dda_pallet_mixin_config['application'] self.application = dda_pallet_mixin_config['application']
self.domain_file_name = dda_pallet_mixin_config['domain_file_name'] self.domain_file_name = dda_pallet_mixin_config['domain_file_name']