diff options
| author | Kieran Spear <kispear@gmail.com> | 2013-10-24 15:56:47 +1100 |
|---|---|---|
| committer | Kieran Spear <kispear@gmail.com> | 2013-11-11 14:30:25 +1100 |
| commit | 6454bc2894a43a3dcba0e7a185120dfa6bd732f4 (patch) | |
| tree | 838814872132af78da0c7e7dde5fb456bf6d9ab3 /keystoneclient/httpclient.py | |
| parent | dca1d4259d44a0d282396a18c895de834580fe66 (diff) | |
| download | python-keystoneclient-6454bc2894a43a3dcba0e7a185120dfa6bd732f4.tar.gz | |
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
Diffstat (limited to 'keystoneclient/httpclient.py')
| -rw-r--r-- | keystoneclient/httpclient.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/keystoneclient/httpclient.py b/keystoneclient/httpclient.py index 7146d8c..e17e4be 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) |
