Projet

Général

Profil

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

Frédéric Péters, 24 février 2019 15:16

Télécharger (1,34 ko)

Voir les différences:

Subject: [PATCH] hobo: give newly created cubes a slug (#30859)

 bijoe/hobo_agent/management/commands/hobo_deploy.py | 4 ++++
 1 file changed, 4 insertions(+)
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

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