#NEWLINE# def handle( self , request , context ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# context [ 'monitor_id' ] = api . lbaas . pool_health_monitor_create ( request , ** context ) . get ( 'id' ) #NEWLINE# return True #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# exceptions . handle ( request , _ ( 'Unable to add monitor.' ) ) #NEWLINE# #UNINDENT# return False