<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"><meta name="Generator" content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
h1
        {mso-style-priority:9;
        mso-style-link:"Heading 1 Char";
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:24.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.Heading1Char
        {mso-style-name:"Heading 1 Char";
        mso-style-priority:9;
        mso-style-link:"Heading 1";
        font-family:"Times New Roman","serif";
        font-weight:bold;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.yui3-editabletext-text
        {mso-style-name:yui3-editable_text-text;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang="EN-US" link="blue" vlink="purple"><div class="WordSection1"><p class="MsoNormal"><span style="font-size:12.0pt">Hi All,</span></p><p class="MsoNormal"><span style="font-size:12.0pt"> </span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">I am fixing a Bug #1261713: Volume type 'None' gives indistinguishable CLI output (</span><a href="https://bugs.launchpad.net/cinder/+bug/1261713">https://bugs.launchpad.net/cinder/+bug/1261713</a><span style="font-size:12.0pt">)</span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"> </span></p><p class="MsoNormal"><span style="font-size:12.0pt">Currently if any value in cinder-api response is a NoneType (i.e. NULL) then python-cinderclient shows an entry as None in the output. This is because of JSON parsing null to NoneType.</span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Please check the following cinder list output: <a href="http://paste.openstack.org/show/55648/">http://paste.openstack.org/show/55648/</a></span></p><p class="MsoNormal">
<span style="font-size:12.0pt"> </span></p><p class="MsoNormal"><span style="font-size:12.0pt">In the given output JSON correctly shows "volume_type" as null, but while using python-cinderclient it converts JSON null to python NoneType which is sometimes confusing as mentioned in the bug above.</span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">So instead we should show the null entries as either hyphen( - ) or just a space (  ) in the output of python-cinderclient.</span></p><p class="MsoNormal"><span style="font-size:12.0pt"> </span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Expected output of python-cinderclient in case of NoneType values for Name and Volume_Type would be as follows:</span></p><p class="MsoNormal"><a href="http://paste.openstack.org/show/55654/">http://paste.openstack.org/show/55654/</a></p>
<p class="MsoNormal"> </p><p class="MsoNormal"><span style="font-size:12.0pt"> </span></p><p class="MsoNormal"><span style="font-size:12.0pt"> </span></p><p class="MsoNormal"><span style="font-size:12.0pt">Regards,</span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Shrirang</span></p></div></body></html>

<br>
<div><font size="1">*****Disclaimer*****</font></div><div><font size="1">The information contained in this e-mail and any attachment(s) to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information of Izel Technologies Pvt. Ltd. If you are not the intended recipient, you are notified that any review, use, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail message, contents or its attachment(s) is strictly prohibited and you are requested to notify us the same immediately by e-mail and delete this mail immediately. Izel Technologies Pvt. Ltd accepts no liability for virus infected e-mail or errors or omissions or consequences which may arise as a result of this e-mail transmission.</font></div><div><font size="1">*****End of Disclaimer*****</font></div>