#NEWLINE# def allowed( self , request , datum = None ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# tenant_id = request . user . tenant_id #NEWLINE# monitors = api . lbaas . pool_health_monitor_list ( request , tenant_id = tenant_id ) #NEWLINE# for m in monitors : #NEWLINE# #INDENT# if ( self . id not in datum [ 'health_monitors' ] ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# except Exception : #NEWLINE# #INDENT# exceptions . handle ( request , _ ( 'Failed to retrieve health monitors.' ) ) #NEWLINE# #UNINDENT# return False