From d96c511ab939a9a9f3f6d7d1fb26bf125fe06aa6 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Wed, 30 Sep 2015 13:54:22 +0200 Subject: [PATCH 4/5] multitenant: fix Tenant.get_hobo_json() (#8425) Bug found using the new test suite. --- hobo/multitenant/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hobo/multitenant/models.py b/hobo/multitenant/models.py index b86b964..30b3648 100644 --- a/hobo/multitenant/models.py +++ b/hobo/multitenant/models.py @@ -29,9 +29,9 @@ class Tenant(TenantMixin): def get_hobo_json(self): if not self.__hobo_json: - self.__hobo_json = json.loads( + self.__hobo_json = json.load(open( os.path.join(self.get_directory(), - 'hobo.json')) + 'hobo.json'))) return self.__hobo_json def get_service(self): -- 2.1.4