diff options
-rw-r--r-- | src/leap/bitmask/bonafide/config.py | 8 | ||||
-rw-r--r-- | src/leap/bitmask/core/dispatcher.py | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/leap/bitmask/bonafide/config.py b/src/leap/bitmask/bonafide/config.py index b3c35ba..82442c8 100644 --- a/src/leap/bitmask/bonafide/config.py +++ b/src/leap/bitmask/bonafide/config.py @@ -163,10 +163,6 @@ class Provider(object): 'openvpn': ['eip'], 'mx': ['soledad', 'smtp']} - first_bootstrap = defaultdict(None) - ongoing_bootstrap = defaultdict(None) - stuck_bootstrap = defaultdict(None) - log = Logger() def __init__(self, domain, autoconf=False, basedir=None, @@ -179,6 +175,10 @@ class Provider(object): self._disco = Discovery('https://%s' % domain) self._provider_config = None + self.first_bootstrap = defaultdict(None) + self.ongoing_bootstrap = defaultdict(None) + self.stuck_bootstrap = defaultdict(None) + is_configured = self.is_configured() if not is_configured: check_certificate = False diff --git a/src/leap/bitmask/core/dispatcher.py b/src/leap/bitmask/core/dispatcher.py index 187ebfd..41b091f 100644 --- a/src/leap/bitmask/core/dispatcher.py +++ b/src/leap/bitmask/core/dispatcher.py @@ -119,7 +119,7 @@ class UserCmd(SubCommand): len(parts[2:]))) autoconf = False if len(parts) > 4: - if parts[4] == 'true': + if parts[4] == 'True': autoconf = True # FIXME We still SHOULD pass a local token @@ -148,7 +148,7 @@ class UserCmd(SubCommand): invite = None autoconf = False if len(parts) > 5: - if parts[5] == 'true': + if parts[5] == 'True': autoconf = True return bonafide.do_signup(user, password, invite, autoconf) |