#NEWLINE# def show( self , req , flavor_id , id ) : #NEWLINE# #INDENT# ' Return a single extra spec item ' #NEWLINE# context = id . environ [ 'nova.context' ] #NEWLINE# specs = self . _get_extra_specs ( context , flavor_id ) #NEWLINE# if ( id in specs [ 'extra_specs' ] ) : #NEWLINE# #INDENT# return { #NEWLINE# #INDENT# id : specs [ 'extra_specs' ] [ id ] , #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return faults . Fault ( exc . HTTPNotFound ( ) )