From 6454bc2894a43a3dcba0e7a185120dfa6bd732f4 Mon Sep 17 00:00:00 2001 From: Kieran Spear Date: Thu, 24 Oct 2013 15:56:47 +1100 Subject: [PATCH] Add --insecure to curl output if required When the --insecure option is given, the curl command did not have certificate verification turned off. Partial-Bug: #1249891 Change-Id: Ia4f21d03f060bac0db51a79b89b0246b2ee3d041 --- keystoneclient/httpclient.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/keystoneclient/httpclient.py b/keystoneclient/httpclient.py index 7146d8c07..e17e4bea3 100644 --- a/keystoneclient/httpclient.py +++ b/keystoneclient/httpclient.py @@ -89,6 +89,9 @@ def request(url, method='GET', headers=None, original_ip=None, debug=False, if debug: string_parts = ['curl -i'] + if not kwargs.get('verify', True): + string_parts.append(' --insecure') + if method: string_parts.append(' -X %s' % method)