<html><body>
<p><font size="2" face="sans-serif">Hi Wang Hong,</font><br>
<br>
<font size="2" face="sans-serif">Good catch. I think the issue is caused by line 244-246, see <a href="https://github.com/openstack/glance/blob/master/glance/common/utils.py#L244">https://github.com/openstack/glance/blob/master/glance/common/utils.py#L244</a> For the case-matter issue, I think it's a bug. But as for the - to _, I would like to listen Jay's opinion since who is the original author. And obviously, it's intentional change.</font><br>
<br>
<font size="2" face="sans-serif">Thanks & Best regards,<br>
Fei Long Wang (Íõ·ÉÁú)<br>
---------------------------------------------------------------------<br>
Tech Lead of Nitrogen (SME team)<br>
Cloud Solutions and OpenStack Development<br>
Tel: 8610-82450513 | T/L: 905-0513 <br>
Email: flwang@cn.ibm.com<br>
China Systems & Technology Laboratory in Beijing<br>
---------------------------------------------------------------------<br>
</font><br>
<br>
<img width="16" height="16" src="cid:1__=C7BBF6FFDFA944CA8f9e8a93df938@cn.ibm.com" border="0" alt="Inactive hide details for Íõºê ---01/26/2014 05:14:02 PM---Hi all. If I use the following command to create an image:"><font size="2" color="#424282" face="sans-serif">Íõºê ---01/26/2014 05:14:02 PM---Hi all. If I use the following command to create an image:</font><br>
<br>
<font size="1" color="#5F5F5F" face="sans-serif">From:      </font><font size="1" face="sans-serif">Íõºê <w.wanghong1@gmail.com></font><br>
<font size="1" color="#5F5F5F" face="sans-serif">To:        </font><font size="1" face="sans-serif">openstack-dev@lists.openstack.org, </font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Date:      </font><font size="1" face="sans-serif">01/26/2014 05:14 PM</font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Subject:   </font><font size="1" face="sans-serif">[openstack-dev] [glance]A question abount the x-image-meta-property     parameter.</font><br>
<hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><br>
<br>
<br>
<font size="3" face="serif">Hi all.<br>
<br>
If I use the following command to create an image: <br>
curl -i -H "X-Auth-Token:268c536db05b435bb6e631158744e3f6" -H "x-image-meta-property-IMAGE-TYPE:xxx" -H "x-image-meta-name:test" -X POST </font><a href="http://127.0.0.1:9292/v1/images"><font size="3" color="#0000FF" face="serif"><u>http://127.0.0.1:9292/v1/images</u></font></a><font size="3" face="serif"><br>
<br>
I will get the following results:<br>
{"image": {"status": "queued", "deleted": false, "container_format": null, "min_ram": 0, "updated_at": "2014-01-26T08:51:54", "owner": "9a38c1cda5344dd288331b988739c834", "min_disk": 0, "is_public": false, "deleted_at": null, "id": "696ab97d-0e6f-46f1-8570-b6db707a748b", "size": 0, "name": "test", "checksum": null, "created_at": "2014-01-26T08:51:54", "disk_format": null, "properties": {"image_type": "xxx"}, "protected": false}}<br>
<br>
The capital letters in the property will be converted to lowercase letters and "-" will be converted to "_"("IMAGE-TYPE"=>"image_type").<br>
<br>
Is it a bug? Thanks.<br>
<br>
Best regards.<br>
wanghong</font><tt><font size="2">_______________________________________________<br>
OpenStack-dev mailing list<br>
OpenStack-dev@lists.openstack.org<br>
</font></tt><tt><font size="2"><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a></font></tt><tt><font size="2"><br>
</font></tt><br>
</body></html>