#NEWLINE# @ extensions . expected_errors ( 404 ) #NEWLINE# def index( self , req , flavor_id ) : #NEWLINE# #INDENT# context = req . environ [ 'nova.context' ] #NEWLINE# authorize ( self ) #NEWLINE# flavor = common . get_flavor ( context , flavor_id ) #NEWLINE# if flavor . is_public : #NEWLINE# #INDENT# explanation = _ ( 'Access list not available for public flavors.' ) #NEWLINE# raise webob . exc . HTTPNotFound ( explanation = explanation ) #NEWLINE# #UNINDENT# return _marshall_flavor_access ( flavor )