summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/vpn/_checks.py
diff options
context:
space:
mode:
authorKali Kaneko (leap communications) <kali@leap.se>2017-02-01 18:35:15 +0100
committerKali Kaneko (leap communications) <kali@leap.se>2017-02-23 00:40:35 +0100
commit5103c1c46dadb15af0327c8069d4c321f4f93d4f (patch)
tree47e9745eab148a840c3ebbcc57e17bb9c139aeeb /src/leap/bitmask/vpn/_checks.py
parent9551ff71ce976f04e98f1c19c667bc5f9f402ae9 (diff)
[feature] add install/uninstall command for helpers
Diffstat (limited to 'src/leap/bitmask/vpn/_checks.py')
-rw-r--r--src/leap/bitmask/vpn/_checks.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/leap/bitmask/vpn/_checks.py b/src/leap/bitmask/vpn/_checks.py
index 3a1914f..f4d4ed3 100644
--- a/src/leap/bitmask/vpn/_checks.py
+++ b/src/leap/bitmask/vpn/_checks.py
@@ -3,18 +3,21 @@ import os
from leap.common.config import get_path_prefix
+# TODO use privilege.py module, plenty of checks in there for pkexec and
+# friends.
+
class ImproperlyConfigured(Exception):
pass
def is_service_ready(provider):
- valid_cert = _has_valid_cert(provider)
+ _has_valid_cert(provider)
return True
def get_eip_cert_path(provider):
return os.path.join(get_path_prefix(),
- 'leap', 'providers', provider,
+ 'leap', 'providers', provider,
'keys', 'client', 'openvpn.pem')
@@ -23,5 +26,3 @@ def _has_valid_cert(provider):
has_file = os.path.isfile(cert_path)
if not has_file:
raise ImproperlyConfigured('Missing EIP certificate')
-
-