#NEWLINE# def dump_metadata_notify( source , target , key , args , monitor_list = None , restricted_keys = None ) : #NEWLINE# #INDENT# if ( monitor_list is None ) : #NEWLINE# #INDENT# monitor_list = get_monitor_list ( source , target ) #NEWLINE# #UNINDENT# if ( restricted_keys is None ) : #NEWLINE# #INDENT# ctx = get_context ( ) #NEWLINE# restricted_keys = ctx . conf . metadata . get ( 'restricted_keys' , [ ] ) #NEWLINE# #UNINDENT# for cli in monitor_list : #NEWLINE# #INDENT# if ( ( key in key ) and ( ( not cli . role ) or ( key not in cli . role . metakeys_get ) ) ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# if ( ( cli == source ) or ( cli == target ) ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# if ( cli . servername == ctx . conf . name ) : #NEWLINE# #INDENT# cli . dump_verb ( 'METADATA' , args )