summaryrefslogtreecommitdiff
path: root/bonafide/src
diff options
context:
space:
mode:
authorKali Kaneko (leap communications) <kali@leap.se>2016-03-01 12:24:01 -0400
committerKali Kaneko (leap communications) <kali@leap.se>2016-03-01 12:24:01 -0400
commitbee54f6d751ea2cbad390fef7bb08f7ac31e3c76 (patch)
treeae7ea627a81b001c610686750cde9e1ebe455d94 /bonafide/src
parentd87ab57d3876d5246af5790aaa30dadeca06a2ed (diff)
fix provider config check
Diffstat (limited to 'bonafide/src')
-rw-r--r--bonafide/src/leap/bonafide/config.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/bonafide/src/leap/bonafide/config.py b/bonafide/src/leap/bonafide/config.py
index 0f410f3..f866368 100644
--- a/bonafide/src/leap/bonafide/config.py
+++ b/bonafide/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