Projet

Général

Profil

0001-Revert-hobo-give-newly-created-cubes-a-slug-30859-38.patch

Valentin Deniaud, 17 décembre 2019 17:58

Télécharger (1,5 ko)

Voir les différences:

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(-)
bijoe/hobo_agent/management/commands/hobo_deploy.py
36 36
            config = ConfigParser.ConfigParser()
37 37
            config.read(ini_file)
38 38

  
39
            new = not(os.path.exists(ini_file))
40

  
41 39
            if not os.path.exists(schemas_path):
42 40
                os.mkdir(schemas_path)
43 41
            if not config.has_section('wcs-olap'):
......
84 82
                config.set(base_url, 'key', key)
85 83
                config.set(base_url, 'schema', schema)
86 84
                config.set(base_url, 'cubes_label', service.get('title').encode('utf-8'))
87
                if new:
88
                    config.set(base_url, 'cubes_slug', service.get('slug'))
89 85
            with open(ini_file, 'w') as f:
90 86
                config.write(f)	
91
-