check_hobos: store hobo.json in app_dir (fixes #7272)

This commit is contained in:
Benjamin Dauvergne 2015-12-18 23:05:17 +01:00
parent 14825d8a7e
commit 0632245289
1 changed files with 3 additions and 0 deletions

View File

@ -67,6 +67,7 @@ class CmdCheckHobos(Command):
service = [x for x in self.all_services.get('services', []) if \
x.get('service-id') == 'wcs' and x.get('base_url') == base_url][0]
service['this'] = True
if base_url.endswith('/'): # wcs doesn't expect a trailing slash
service['base_url'] = base_url[:-1]
@ -100,6 +101,8 @@ class CmdCheckHobos(Command):
self.configure_sql(service, pub)
self.update_profile(self.all_services.get('profile', {}), pub)
# Store hobo.json
atomic_write(os.path.join(pub.app_dir, 'hobo.json'), json.dumps(self.all_services))
def update_configuration(self, service, pub):
if not pub.cfg.get('misc'):