summaryrefslogtreecommitdiff
path: root/src/leap/eip/config.py
diff options
context:
space:
mode:
authorantialias <antialias@leap.se>2012-08-21 13:46:01 -0700
committerantialias <antialias@leap.se>2012-08-21 13:46:01 -0700
commit6ce22c7ebd293550473bfa5453a2f720dffad3e8 (patch)
treef4c19d1bbea969aa6b3279ad038db1d486e5eaf0 /src/leap/eip/config.py
parentaf33eaa36c3b799a14a56b7845db3833ed52b97d (diff)
minor pep8 clean up.
Diffstat (limited to 'src/leap/eip/config.py')
-rw-r--r--src/leap/eip/config.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/leap/eip/config.py b/src/leap/eip/config.py
index a219fedb..e0151e87 100644
--- a/src/leap/eip/config.py
+++ b/src/leap/eip/config.py
@@ -403,14 +403,14 @@ def check_vpn_keys(config):
check_and_fix_urw_only(keyfile)
except OSError:
raise EIPInitBadKeyFilePermError
-
-
+
+
def get_config_json(config_file=None):
"""
will replace get_config function be developing them
in parralel for branch purposes.
@param: configuration file
- @type: file
+ @type: file
@rparam: configuration turples
@rtype: dictionary
"""
@@ -421,7 +421,7 @@ def get_config_json(config_file=None):
if not os.path.isdir(dpath):
mkdir_p(dpath)
with open(fpath, 'wb') as configfile:
- configfile.write()
+ configfile.flush()
config_file = open(fpath)
config = json.load(config_file)