From 76283a15aeccdd8b7eb233c9946b800865e99c5e Mon Sep 17 00:00:00 2001 From: "Kali Kaneko (leap communications)" Date: Tue, 1 Mar 2016 12:24:01 -0400 Subject: fix provider config check --- src/leap/bonafide/config.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/leap') diff --git a/src/leap/bonafide/config.py b/src/leap/bonafide/config.py index 0f410f3..f866368 100644 --- a/src/leap/bonafide/config.py +++ b/src/leap/bonafide/config.py @@ -145,7 +145,7 @@ class Provider(object): self._domain = domain self._basedir = os.path.expanduser(basedir) self._disco = Discovery('https://%s' % domain) - self._provider_config = {} + self._provider_config = None is_configured = self.is_configured() if not is_configured: @@ -380,11 +380,12 @@ class Provider(object): return result def has_config_for_all_services(self): + self._load_provider_json() if not self._provider_config: return False all_services = self._provider_config.services has_all = all( - [self._has_config_for_service(service) for service in + [self.has_config_for_service(service) for service in all_services]) return has_all -- cgit v1.2.3