#NEWLINE# def reject( self , match = None , match_dict = None , include_accepted = False , include_denied = False ) : #NEWLINE# #INDENT# '\n        Reject public keys. If "match" is passed, it is evaluated as a glob.\n        Pre-gathered matches can also be passed via "match_dict".\n        ' #NEWLINE# if ( match is not None ) : #NEWLINE# #INDENT# matches = self . name_match ( match ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( ( match_dict is not None ) and isinstance ( match_dict , dict ) ) : #NEWLINE# #INDENT# matches = match_dict #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# matches = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# #UNINDENT# keydirs = [ self . PEND ] #NEWLINE# if include_accepted : #NEWLINE# #INDENT# keydirs . append ( self . ACC ) #NEWLINE# #UNINDENT# if include_denied : #NEWLINE# #INDENT# keydirs . append ( self . DEN ) #NEWLINE# #UNINDENT# for keydir in keydirs : #NEWLINE# #INDENT# for key in matches . get ( keydir , [ ] ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# shutil . move ( os . path . join ( self . opts [ 'pki_dir' ] , keydir , key ) , os . path . join ( self . opts [ 'pki_dir' ] , self . REJ , key ) ) #NEWLINE# #UNINDENT# except ( IOError , OSError ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# self . check_minion_cache ( ) #NEWLINE# return ( self . name_match ( match ) if ( match is not None ) else self . dict_match ( matches ) )