From 78f6d9f15aa062ec9221410d65f6a08526b1d7a6 Mon Sep 17 00:00:00 2001 From: Vishvananda Ishaya Date: Wed, 18 Jan 2012 21:06:00 -0800 Subject: Fix missing imports and bad call caught by pyflakes Change-Id: Ib2735fff18d76152baa7f9c61af7ddf4594c722b --- nova/vnc/xvp_proxy.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/nova/vnc/xvp_proxy.py b/nova/vnc/xvp_proxy.py index fa1845726..1bcc83240 100644 --- a/nova/vnc/xvp_proxy.py +++ b/nova/vnc/xvp_proxy.py @@ -18,8 +18,6 @@ """Eventlet WSGI Services to proxy VNC for XCP protocol.""" -import base64 -import os import socket import webob @@ -103,7 +101,7 @@ class XCPVNCProxy(object): sockets['client'] = client sockets['server'] = server - def proxy_connection(self, req, connect_info): + def proxy_connection(self, req, connect_info, start_response): """Spawn bi-directional vnc proxy.""" sockets = {} t0 = eventlet.spawn(self.handshake, req, connect_info, sockets) @@ -149,7 +147,7 @@ class XCPVNCProxy(object): [('content-type', 'text/html')]) return "Not Authorized" - self.proxy_connection(req, connect_info) + return self.proxy_connection(req, connect_info, start_response) except Exception as e: LOG.audit(_("Unexpected error: %s"), e) -- cgit