From 418d941833df8629335bbe79e6de1a985174f087 Mon Sep 17 00:00:00 2001 From: Jerry Vonau Date: Wed, 4 Jul 2018 08:30:53 -0500 Subject: [PATCH] whitespace --- roles/network/tasks/main.yml | 2 +- .../templates/captive_portal/captive_portal.py.j2 | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/roles/network/tasks/main.yml b/roles/network/tasks/main.yml index 959c0b368..3d2e7ec42 100644 --- a/roles/network/tasks/main.yml +++ b/roles/network/tasks/main.yml @@ -74,7 +74,7 @@ include_tasks: squid.yml when: FQDN_changed and squid_install and iiab_stage|int == 9 -#- name: FOREFULLY ENABLE CAPTIVE PORTAL +#- name: FOREFULLY ENABLE CAPTIVE PORTAL # set_fact: # py_captive_portal_install: True diff --git a/roles/network/templates/captive_portal/captive_portal.py.j2 b/roles/network/templates/captive_portal/captive_portal.py.j2 index c6021d87c..e873f28de 100755 --- a/roles/network/templates/captive_portal/captive_portal.py.j2 +++ b/roles/network/templates/captive_portal/captive_portal.py.j2 @@ -7,9 +7,9 @@ import BaseHTTPServer import cgi # These variables are used as settings -PORT = int("{{ captive_portal_port }}") # the port in which the captive portal web server listens +PORT = int("{{ captive_portal_port }}") # the port in which the captive portal web server listens IFACE = "{{ iiab_lan_iface }}" # the interface that captive portal protects -IP_ADDRESS = "172.18.96.1" # the ip address of the captive portal (it can be the IP of IFACE) +IP_ADDRESS = "172.18.96.1" # the ip address of the captive portal (it can be the IP of IFACE) ''' This it the http server used by the the captive portal @@ -40,7 +40,7 @@ class CaptivePortal(BaseHTTPServer.BaseHTTPRequestHandler): """ - + ''' if the user requests the login page show it, else use the redirect page @@ -62,7 +62,7 @@ class CaptivePortal(BaseHTTPServer.BaseHTTPRequestHandler): self.send_header("Content-type", "text/html") self.end_headers() form = cgi.FieldStorage( - fp=self.rfile, + fp=self.rfile, headers=self.headers, environ={'REQUEST_METHOD':'POST', 'CONTENT_TYPE':self.headers['Content-Type'], @@ -81,7 +81,7 @@ class CaptivePortal(BaseHTTPServer.BaseHTTPRequestHandler): else: #show the login form self.wfile.write(self.html_login) - + #the following function makes server produce no output #comment it out if you want to print diagnostic messages #def log_message(self, format, *args):