Curl statements to include globoff for IPv6 URLs

python-keystoneclient displays curl statements for debugging/troubleshooting
purposes. For IPv6 URLs, curl requires --globoff to be passed in the
arguments. Since keystoneclient does not use curl directly, this patch
displays the curl commands with globoff option which works for both
IPv4 and IPv6 URLs.
Fix adapted from python-novaclient Ib7099e8e3bbc15f29bbaa1db37ef21e78a74e7bc

Closes-Bug: #1228744
Change-Id: Ia05e622dea653597d412ffe0987077616fbb18af
This commit is contained in:
sridhargaddam
2014-11-21 12:58:10 +00:00
parent b71a0a22c5
commit c859cb71c2

View File

@@ -139,7 +139,7 @@ class Session(object):
# debug log.
return
string_parts = ['REQ: curl -i']
string_parts = ['REQ: curl -g -i']
# NOTE(jamielennox): None means let requests do its default validation
# so we need to actually check that this is False.