From ae717d29f03b92189e5a00681e3b159f1921aa7b Mon Sep 17 00:00:00 2001 From: Valentin Deniaud Date: Tue, 17 Dec 2019 17:55:46 +0100 Subject: [PATCH 1/2] Revert "hobo: give newly created cubes a slug (#30859)" (#38596) This reverts commit 3e956befb40f36f48da78f311467dff9ba3dbf8b. This was buggy since new is file specific and cubes_slug config-section specific. --- bijoe/hobo_agent/management/commands/hobo_deploy.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/bijoe/hobo_agent/management/commands/hobo_deploy.py b/bijoe/hobo_agent/management/commands/hobo_deploy.py index f2e00a6..4659b22 100644 --- a/bijoe/hobo_agent/management/commands/hobo_deploy.py +++ b/bijoe/hobo_agent/management/commands/hobo_deploy.py @@ -36,8 +36,6 @@ class Command(hobo_deploy.Command): config = ConfigParser.ConfigParser() config.read(ini_file) - new = not(os.path.exists(ini_file)) - if not os.path.exists(schemas_path): os.mkdir(schemas_path) if not config.has_section('wcs-olap'): @@ -84,7 +82,5 @@ class Command(hobo_deploy.Command): config.set(base_url, 'key', key) config.set(base_url, 'schema', schema) config.set(base_url, 'cubes_label', service.get('title').encode('utf-8')) - if new: - config.set(base_url, 'cubes_slug', service.get('slug')) with open(ini_file, 'w') as f: config.write(f) -- 2.20.1