Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You can use the flavor_get_extras() function:

>>> extras = api.nova.flavor_get_extras(self.request, flavor_id, raw=True)
>>> extras
{u'test': u'value'}
>>> extras.get('test', '-')
u'value'
>>> extras.get('mySpecs', '-')
'-'

Check out the admin flavors panel for other examples.