From 8d0d4b90f3c177d40a884fc562c51764cf5045f5 Mon Sep 17 00:00:00 2001 From: Stuart McLaren Date: Tue, 22 Jan 2013 11:42:42 +0000 Subject: [PATCH] Change https port to be an optional parameter VerifiedHTTPSConnection inherits from HTTPSConnection so 'port' should be an optional argument. If not present it will be set by HTTPSConnection in the usual way: by parsing the host string (eg 'localhost:8443') or setting to the default of '443'. Addresses bug 1102944. Change-Id: I2c2cb92f824acf15b0ff54590b5614cf206b57e0 --- glanceclient/common/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glanceclient/common/http.py b/glanceclient/common/http.py index 1a5ce20..502edab 100644 --- a/glanceclient/common/http.py +++ b/glanceclient/common/http.py @@ -246,7 +246,7 @@ class VerifiedHTTPSConnection(httplib.HTTPSConnection): Note: Much of this functionality can eventually be replaced with native Python 3.3 code. """ - def __init__(self, host, port, key_file=None, cert_file=None, + def __init__(self, host, port=None, key_file=None, cert_file=None, cacert=None, timeout=None, insecure=False, ssl_compression=True): httplib.HTTPSConnection.__init__(self, host, port,