#NEWLINE# @ extensions . expected_errors ( 404 ) #NEWLINE# def index( self , req , server_id ) : #NEWLINE# #INDENT# 'Returns the list of metadata for a given instance.' #NEWLINE# context = req . environ [ 'nova.context' ] #NEWLINE# authorize ( self , action = 'index' ) #NEWLINE# return { #NEWLINE# #INDENT# 'metadata' : self . _get_metadata ( context , server_id ) , #NEWLINE# #UNINDENT# }