#NEWLINE# @ wsgi . action ( 'addSecurityGroup' ) #NEWLINE# def _addSecurityGroup( self , req , id , body ) : #NEWLINE# #INDENT# context = req . environ [ 'nova.context' ] #NEWLINE# authorize ( context ) #NEWLINE# group_name = self . _parse ( body , 'addSecurityGroup' ) #NEWLINE# return self . _invoke ( self . security_group_api . add_to_instance , context , id , group_name )