Commit e346cead authored by Franco Fichtner's avatar Franco Fichtner

src: whitespace and style sweep

parent 2ef52e06
......@@ -127,5 +127,4 @@ class VoucherController extends ApiControllerBase
}
return array();
}
}
......@@ -374,7 +374,7 @@ class Radius implements IAuthConnector
if (!$radius) {
syslog(LOG_ERR, 'RadiusError:' . radius_strerror($error));
} else {
switch($request) {
switch ($request) {
case RADIUS_ACCESS_ACCEPT:
while ($resa = radius_get_attr($radius)) {
switch ($resa['attr']) {
......
......@@ -51,10 +51,7 @@ for conns in s.list_conns():
if child not in conns_found:
conns_found.append(child)
# setup connection if found
# setup connection if found
for conn_id in conns_found:
devnull = open(os.devnull, 'w')
subprocess.call(['/usr/local/sbin/ipsec', 'up', conn_id], stdin=devnull, stdout=devnull, stderr=devnull)
......@@ -47,10 +47,7 @@ for sas in s.list_sas():
if sa == conn_id:
conn_found = True
# terminate connection if found
# terminate connection if found
if conn_found:
devnull = open(os.devnull, 'w')
subprocess.call(['/usr/local/sbin/ipsec', 'down', conn_id], stdin=devnull, stdout=devnull, stderr=devnull)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment