neutron client's curl command does not work with query string
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-neutronclient |
Invalid
|
Medium
|
yong sheng gong |
Bug Description
currently, run neutron -v network-list to show the curl commands. the curl command which has query string in its url will fail.
curl -i http://
[1] 12439
[2] 12440
[3] 12441
HTTP/1.1 401 Unauthorized
Www-Authenticate: Keystone uri='http://
Content-Type: text/plain
Content-Length: 23
Date: Thu, 28 Nov 2013 10:04:38 GMT
Authentication required-X: command not found
[2]- Done fields=cidr
[1] Done curl -i http://
[2]- Done fields=cidr
[3]+ Done id=160b5bba-
but if we enclose the url with double quotes, it works:
gongysh@
HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8
Content-Length: 159
Date: Thu, 28 Nov 2013 10:07:53 GMT
{"subnets": [{"cidr": "10.0.0.0/24", "id": "160b5bba-
affects: | neutron → python-neutronclient |
Fix proposed to branch: master /review. openstack. org/58974
Review: https:/