<html><body>
<p><font size="2" face="sans-serif">Hey Jay, thanks for calling my name correctly :) </font><br>
<br>
<font size="2" face="sans-serif">Wang Hong, feel free to open a bug to track this. And we can get more info/comments when the patch is reviewed. Thanks.</font><br>
<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__=C7BBF6FFDFC6EC2A8f9e8a93df938@cn.ibm.com" border="0" alt="Inactive hide details for Jay Pipes ---01/26/2014 11:20:40 PM---On Sun, 2014-01-26 at 18:48 +0800, Fei Long Wang wrote: > Hi Wa"><font size="2" color="#424282" face="sans-serif">Jay Pipes ---01/26/2014 11:20:40 PM---On Sun, 2014-01-26 at 18:48 +0800, Fei Long Wang wrote: > Hi Wang Hong,</font><br>
<br>
<font size="1" color="#5F5F5F" face="sans-serif">From:      </font><font size="1" face="sans-serif">Jay Pipes <jaypipes@gmail.com></font><br>
<font size="1" color="#5F5F5F" face="sans-serif">To:        </font><font size="1" face="sans-serif">Fei Long Wang/China/IBM@IBMCN, </font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Cc:        </font><font size="1" face="sans-serif">"OpenStack Development Mailing List (not for usage questions)" <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 11:20 PM</font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Subject:   </font><font size="1" face="sans-serif">Re: [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>
<tt><font size="2">On Sun, 2014-01-26 at 18:48 +0800, Fei Long Wang wrote:<br>
> Hi Wang Hong,<br>
> <br>
> Good catch. I think the issue is caused by line 244-246, see<br>
> </font></tt><tt><font size="2"><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></font></tt><tt><font size="2"> 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.<br>
<br>
Hi Wang Hong adnd Fei Long,<br>
<br>
It's been a long time since I wrote that :) To be honest, I'm not sure<br>
why -- other than just standardizing/normalizing the input, we did that.<br>
Perhaps it had something to do with vendor-specific properties that had<br>
a prefix that used hyphens, but I'm really not sure... perhaps I am<br>
getting too old :)<br>
<br>
Best,<br>
-jay<br>
<br>
> Inactive hide details for Íõºê ---01/26/2014 05:14:02 PM---Hi all. If<br>
> I use the following command to create an image:Íõºê ---01/26/2014<br>
> 05:14:02 PM---Hi all. If I use the following command to create an<br>
> image:<br>
> <br>
> From: Íõºê <w.wanghong1@gmail.com><br>
> To: openstack-dev@lists.openstack.org, <br>
> Date: 01/26/2014 05:14 PM<br>
> Subject: [openstack-dev] [glance]A question abount the<br>
> x-image-meta-property parameter.<br>
> <br>
> <br>
> <br>
> ______________________________________________________________________<br>
> <br>
> <br>
> <br>
> Hi all.<br>
> <br>
> If I use the following command to create an image: <br>
> curl -i -H "X-Auth-Token:268c536db05b435bb6e631158744e3f6" -H<br>
> "x-image-meta-property-IMAGE-TYPE:xxx" -H "x-image-meta-name:test" -X<br>
> POST </font></tt><tt><font size="2"><a href="http://127.0.0.1:9292/v1/images">http://127.0.0.1:9292/v1/images</a></font></tt><tt><font size="2"><br>
> <br>
> I will get the following results:<br>
> {"image": {"status": "queued", "deleted": false, "container_format":<br>
> null, "min_ram": 0, "updated_at": "2014-01-26T08:51:54", "owner":<br>
> "9a38c1cda5344dd288331b988739c834", "min_disk": 0, "is_public": false,<br>
> "deleted_at": null, "id": "696ab97d-0e6f-46f1-8570-b6db707a748b",<br>
> "size": 0, "name": "test", "checksum": null, "created_at":<br>
> "2014-01-26T08:51:54", "disk_format": null, "properties":<br>
> {"image_type": "xxx"}, "protected": false}}<br>
> <br>
> The capital letters in the property will be converted to lowercase<br>
> letters and "-" will be converted to "_"("IMAGE-TYPE"=>"image_type").<br>
> <br>
> Is it a bug? Thanks.<br>
> <br>
> Best regards.<br>
> wanghong_______________________________________________<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>
> <br>
<br>
<br>
</font></tt><br>
</body></html>