Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

get a flavors extra-specs in horizon

Hi all,

i'm trying to port some UI customization I did in Folsom so that it works in Grizzly and I could use everyones help. Must of the process has gone smoothly, there is just one piece that isn't working. Its the code that gets the extra-specs of a flavor while in horizon. My old folsom based code looks like this:

 flavor = api.flavor_get(self.request, flavor_id)
 extras = flavor.get_keys()
 inst.flavor_id = flavor_id
 if extras:
     inst.myvalue = extras['mySpecs']
     inst.myvalue = "-"

But using that code in Grizzly causes a crash ( and no log entries so i don't even know why). 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 ( but I can't find any actual examples of how to do it.

Thanks all