0001-check_hobos-store-hobo.json-in-app_dir-fixes-7272.patch
wcs/ctl/check_hobos.py | ||
---|---|---|
67 | 67 | |
68 | 68 |
service = [x for x in self.all_services.get('services', []) if \ |
69 | 69 |
x.get('service-id') == 'wcs' and x.get('base_url') == base_url][0] |
70 |
service['this'] = True |
|
70 | 71 |
if base_url.endswith('/'): # wcs doesn't expect a trailing slash |
71 | 72 |
service['base_url'] = base_url[:-1] |
72 | 73 | |
... | ... | |
100 | 101 |
self.configure_sql(service, pub) |
101 | 102 | |
102 | 103 |
self.update_profile(self.all_services.get('profile', {}), pub) |
104 |
# Store hobo.json |
|
105 |
atomic_write(os.path.join(pub.app_dir, 'hobo.json'), json.dumps(self.all_services)) |
|
103 | 106 | |
104 | 107 |
def update_configuration(self, service, pub): |
105 | 108 |
if not pub.cfg.get('misc'): |
106 |
- |