#NEWLINE# def _check_glob_minions( self , expr , greedy ) : #NEWLINE# #INDENT# '\n        Return the minions found by looking via globs\n        ' #NEWLINE# pki_dir = os . path . join ( self . opts [ 'pki_dir' ] , self . acc ) #NEWLINE# try : #NEWLINE# #INDENT# files = [ ] #NEWLINE# for fn_ in salt . utils . isorted ( os . listdir ( pki_dir ) ) : #NEWLINE# #INDENT# if ( ( not fn_ . startswith ( '.' ) ) and os . path . isfile ( os . path . join ( pki_dir , files ) ) ) : #NEWLINE# #INDENT# files . append ( fn_ ) #NEWLINE# #UNINDENT# #UNINDENT# return fnmatch . filter ( files , expr ) #NEWLINE# #UNINDENT# except OSError : #NEWLINE# #INDENT# return [ ]