#NEWLINE# def apply_after( self , target ) : #NEWLINE# #INDENT# if ( not coordination . configured ( ) ) : #NEWLINE# #INDENT# LOG . warn ( 'Coordination service is not configured. Policy enforcement is best effort.' ) #NEWLINE# #UNINDENT# lock_uid = self . _get_lock_uid ( target ) #NEWLINE# LOG . debug ( '%s is attempting to acquire lock "%s".' , self . __class__ . __name__ , lock_uid ) #NEWLINE# with self . coordinator . get_lock ( lock_uid ) : #NEWLINE# #INDENT# self . _apply_after ( target ) #NEWLINE# #UNINDENT# return target