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 ...@@ -127,5 +127,4 @@ class VoucherController extends ApiControllerBase
} }
return array(); return array();
} }
} }
...@@ -374,7 +374,7 @@ class Radius implements IAuthConnector ...@@ -374,7 +374,7 @@ class Radius implements IAuthConnector
if (!$radius) { if (!$radius) {
syslog(LOG_ERR, 'RadiusError:' . radius_strerror($error)); syslog(LOG_ERR, 'RadiusError:' . radius_strerror($error));
} else { } else {
switch($request) { switch ($request) {
case RADIUS_ACCESS_ACCEPT: case RADIUS_ACCESS_ACCEPT:
while ($resa = radius_get_attr($radius)) { while ($resa = radius_get_attr($radius)) {
switch ($resa['attr']) { switch ($resa['attr']) {
......
...@@ -51,10 +51,7 @@ for conns in s.list_conns(): ...@@ -51,10 +51,7 @@ for conns in s.list_conns():
if child not in conns_found: if child not in conns_found:
conns_found.append(child) conns_found.append(child)
# setup connection if found # setup connection if found
for conn_id in conns_found: for conn_id in conns_found:
devnull = open(os.devnull, 'w') devnull = open(os.devnull, 'w')
subprocess.call(['/usr/local/sbin/ipsec', 'up', conn_id], stdin=devnull, stdout=devnull, stderr=devnull) 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(): ...@@ -47,10 +47,7 @@ for sas in s.list_sas():
if sa == conn_id: if sa == conn_id:
conn_found = True conn_found = True
# terminate connection if found # terminate connection if found
if conn_found: if conn_found:
devnull = open(os.devnull, 'w') devnull = open(os.devnull, 'w')
subprocess.call(['/usr/local/sbin/ipsec', 'down', conn_id], stdin=devnull, stdout=devnull, stderr=devnull) 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