summaryrefslogtreecommitdiff
path: root/src/leap/eip/config.py
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-08-30 00:36:50 +0900
committerkali <kali@leap.se>2012-08-30 00:42:29 +0900
commit1263cd7a3cfca81ae3e6976a489e2d3d4013d64b (patch)
tree95e6897a949d8772248a52ee714eec19bd2c6e72 /src/leap/eip/config.py
parented4ad3a392caf0211e51a48d2d7b6c5a2f7bb17a (diff)
add lazy evaluation to config specs
now callables are allowed in specs *only at one level depth* to allow for last-minute evaluation on context-sensitive data, like paths affected by os.environ also some minor modifications to make check tests pass after putting the new jsonconfig-based eipconfig in place. aaaaaall green again :)
Diffstat (limited to 'src/leap/eip/config.py')
-rw-r--r--src/leap/eip/config.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/leap/eip/config.py b/src/leap/eip/config.py
index 34f05070..a7b24f9b 100644
--- a/src/leap/eip/config.py
+++ b/src/leap/eip/config.py
@@ -15,6 +15,7 @@ from leap.eip import exceptions as eip_exceptions
from leap.eip import constants as eipconstants
from leap.eip import specs as eipspecs
+logging.basicConfig()
logger = logging.getLogger(name=__name__)
logger.setLevel('DEBUG')
@@ -262,6 +263,7 @@ def build_ovpn_command(config, debug=False, do_pkexec_check=True):
return [command[0], command[1:]]
+# XXX deprecate
def get_sensible_defaults():
"""
gathers a dict of sensible defaults,