<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote">On Thu, Aug 1, 2013 at 6:32 PM, Dale, StewartX T <span dir="ltr"><<a href="mailto:stewartx.t.dale@intel.com" target="_blank">stewartx.t.dale@intel.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="#0563C1" vlink="#954F72"><div><p class="MsoNormal">Hi List,<u></u><u></u></p><p class="MsoNormal">
<u></u> <u></u></p><p class="MsoNormal">I'm trying to port some UI(horizon) customization I did in Folsom so that it works in Grizzly and I could use everyone’s help. Must of the process has gone smoothly, just one piece that isn't working. It’s the code that gets the extra-specs of a flavor. My old Folsom based code looks like this:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">flavor = api.flavor_get(self.request, flavor_id)<u></u><u></u></p><p class="MsoNormal">extras = flavor.get_keys()<u></u><u></u></p><p class="MsoNormal">inst.flavor_id = flavor_id<u></u><u></u></p>
<p class="MsoNormal">if extras:<u></u><u></u></p><p class="MsoNormal"> inst.myvalue = extras['mySpecs']<u></u><u></u></p><p class="MsoNormal">else:<u></u><u></u></p><p class="MsoNormal"> inst.myvalue = "-"<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">But using that code in Grizzly causes a crash ( and no log entries so I don't even know why, just the).</p></div></div></blockquote><div><br></div><div>It looks like you were going to link to a backtrace or something at the end there :)</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="#0563C1" vlink="#954F72"><div><p class="MsoNormal">I did some research and saw in the release notes of Grizzly that they had added support for getting a flavors extra specs in horizon (<a href="https://wiki.openstack.org/wiki/ReleaseNotes/Grizzly#Flavor_Extra_Specs_Support" target="_blank">https://wiki.openstack.org/wiki/ReleaseNotes/Grizzly#Flavor_Extra_Specs_Support</a>) but I can't find any actual examples of how to do it. <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I am hoping someone on the list might know.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">
-Stewart Dale<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p></div></div><br>_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><br></div>-Dolph
</div></div>