From: Frank Brehm Date: Fri, 20 Oct 2017 13:45:57 +0000 (+0200) Subject: Simplifying X-Git-Tag: 0.8.4~7 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=bc9d2828aef991a9577ca924d41a3c8c21ec7b5c;p=pixelpark%2Fpuppetmaster-webhooks.git Simplifying --- diff --git a/lib/webhooks/deploy.py b/lib/webhooks/deploy.py index b56810a..7a7d4c9 100644 --- a/lib/webhooks/deploy.py +++ b/lib/webhooks/deploy.py @@ -81,19 +81,6 @@ class WebhookDeployApp(BaseHookApp): def config_projects(self, project_cfg): for project_key in project_cfg.keys(): - if project_key == 'hiera': - cfg = project_cfg['hiera'] - if 'namespace' in cfg and cfg['namespace'].strip(): - self.projects['hiera']['namespace'] = cfg['namespace'].strip() - if 'name' in cfg and cfg['name'].strip(): - self.projects['hiera']['name'] = cfg['name'].strip() - if 'parent_dir' in cfg and cfg['parent_dir']: - self.projects['hiera']['parent_dir'] = cfg['parent_dir'] - if 'workdir' in cfg and cfg['workdir']: - self.projects[project_key]['workdir'] = cfg['workdir'] - if 'branch' in cfg and cfg['branch'].strip(): - self.projects[project_key]['branch'] = cfg['branch'].strip() - continue if project_key not in self.projects: self.projects[project_key] = {} cfg = project_cfg[project_key]